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

Christian Gollwitzer auriocus at gmx.de
Thu Sep 15 01:35:40 EDT 2016


Am 15.09.16 um 07:01 schrieb Paul Rubin:
> Travis Griggs <travisgriggs at gmail.com> writes:
>> for each in ['cake'] + ['eat', 'it'] * 2:
>> print(each)
>> https://pbs.twimg.com/media/Cr-edT2VUAArpVL.jpg
>http://www.azlyrics.com/lyrics/queen/bohemianrhapsody.html
More interestingly, which language is it? First I thought C++ or Java, 
but they don't use self and there is a => operator. PHP adornes 
variables with $. Another C-derived language which has built-in hash maps?
	Christian


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /