About Arrays

Lots of values could be stored using lots of variables:

 # 
name1 = "Fred"
name2 = "Sue"
name3 = "Mark"
name4 = "Alice" 
#

An array stores several values:

 #
name = ["Fred", "Sue", "Mark", "Alice"]
#

Each item in an array is identified by an index value, starting with 0:

 # 
print(name[0]) # "Fred"
print(name[1]) # "Sue" 
print(name[2]) # "Mark" 
#

The values in an array can be accessed efficiently using loops:

 # 
for index in range(4):
    print(name[index])
#