May-09-2020, 10:33 AM
Hi,
Are there situations where one can use a for without an in?
Usually the for loop is
for x in whatever:
.....
I get the impression that "for" must always be used with the "in" keyword. Is this true?
Can anyone give me an example of for loop where the "for" is used without an accompanying "in" keyword?
Thanks for any replies
Are there situations where one can use a for without an in?
Usually the for loop is
for x in whatever:
.....
I get the impression that "for" must always be used with the "in" keyword. Is this true?
Can anyone give me an example of for loop where the "for" is used without an accompanying "in" keyword?
Thanks for any replies