I just started learning Python with Pythonista and the book 'Head First Python'
There is an exercise which I do not understand. I create a list variable: eg
movies = [ 'and', 'bin', 'can','den']
and then the code snippet:
for each_item in movies: print(each_item)
Which as expected prints each string on a new line. When I put this code into this function:
for an_item in My_list:
the list entries print out each character of each string on a new line. What is going on here?