a = ["apple","banana","orange"] print a a[1] = "pear" # replaces the contents of shelf one print a print a[0] # prints the contents of shelf zero