sábado, 20 de enero de 2018

python list

numbers = []
strings = []
names = ["John", "Eric", "Jessica"]

# write your code here
second_name=names[1]
numbers.append(1)
numbers.append(2)
numbers.append(3)
strings.append("hello")
strings.append("world")

# this code should write out the filled arrays and the second name in the names list (Eric).
print(numbers)
print(strings)
print("The second name on the names list is %s" % second_name)

No hay comentarios:

Publicar un comentario