Thank you for putting this MIT series on Youtube for free. In this lecture I was surprised to hear Eric say 'any For statement can be rewritten as a While statement.' I'm certainly not trying to match wits with Eric – no thank you! Having said that, I'm under the impression that Python's For loops are pretty special. They can iterate through any object with an _iter_ method. How would you do that in a While?
03:35 while loop
07:32 for loop
11:15 break
can anyone confirm that these videos are in order? this one seems not to flow from the previous
Hi Eric!
"khwhile loop"?
Hi, can you tell me what year this was recorded? Thanks.
Thank you for putting this MIT series on Youtube for free. In this lecture I was surprised to hear Eric say 'any For statement can be rewritten as a While statement.' I'm certainly not trying to match wits with Eric – no thank you! Having said that, I'm under the impression that Python's For loops are pretty special. They can iterate through any object with an _iter_ method. How would you do that in a While?
good stuff!