2021-04-18 21:39:05 +00:00

20 lines
454 B
Python

#!/bin/python3
numbers = []
strings = []
names = ["Robert", "John", "Eric", "Thomas"]
secondName = names[1]
numbers.append(1)
numbers.append(2)
numbers.append(3)
strings.append("Hello")
strings.append("world")
print (numbers)
print (strings)
#print (secondName)
print ("The second name in the name array is: ", secondName)
print ("The second name is %s" % secondName) #I don't understand this technique yet, just copying tutorial code and practicing