Hi guys, I am trying to iterate through a list.
This is my code:
#assume this is the list: list1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] def iter_list(a): for s in a: return s #here it is when it runs: print iter_list(list1) a
why doesn't it iterate over the entire list? it stops in the first character.
simple enough right?
When I run it, I just get the first character of the list.