What is the syntax to print all elements in a list?

for i in range(<list length>):
    print(<arrayName>[i])
#example
flowers = ['tulips', 'roses', 'daisies']
for i in range(len(flowers)):
     print(flowers[i])

#example
for i in [0, 1, 2, 3]:
  print(i)

 

 

Advertisements