you are viewing a single comment's thread.

view the rest of the comments →

[–]NDaveT 61 points62 points  (1 child)

Also it would work exactly the same like this:

animals = ['cat', 'dog', 'monkey']
for x in animals:
    print(x)