That's because Google prescribes to the Python philosophy (I think it's called "Pythonic"), where you only get for-each loops :P Both for loop styles has it's uses in my opinion, and it's very easy...
Type: Posts; User: helloworld922
That's because Google prescribes to the Python philosophy (I think it's called "Pythonic"), where you only get for-each loops :P Both for loop styles has it's uses in my opinion, and it's very easy...
Na, I avoided using the for a while, too, and it's not too difficult at all to just ignore using them :P
I also ignore for-each loops a lot. I don't know why, but I just like having the control...
The reason the while condition checking is at the end is because of the way you'd read it (and also because it's the way it's done in C/C++):
You'll read the "do", then it doesn't matter what the...
Do-while loops in my opinion is a great way to not have to manually create "one and a half" while loops.
Instead of having to copy and paste the same code into two different places with a while...