Why don't we call the for loop what it really is, a foreach loop?

Travis Griggs travisgriggs at gmail.com
Thu Sep 15 00:46:21 EDT 2016



> On Sep 13, 2016, at 13:57, rgrigonis at gmail.com wrote:
> 
> It would help newbies and prevent confusion.

    for each in ['cake'] + ['eat', 'it'] * 2:
        print(each)





More information about the Python-list mailing list