for loop question in python 06-12-2014, 05:52 AM
#1
So I'm currently reading learning python and doing codeacademy for teaching myself python. I have taken a java courses in college, but I'm having a hard time exactly understanding the for loop.
Basically I know in java it's setup like int x; x<0; i++ so i can understand what's going on, but in python I don't fully understand why I'm adding the for x in whatever. Can someone explain it to me in simple wording? sorry if my post makes no sense i'm just getting a little frustrated that I don't fully understand the for loop
Basically I know in java it's setup like int x; x<0; i++ so i can understand what's going on, but in python I don't fully understand why I'm adding the for x in whatever. Can someone explain it to me in simple wording? sorry if my post makes no sense i'm just getting a little frustrated that I don't fully understand the for loop

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)


![[Image: qJweLN6.jpg]](http://i.imgur.com/qJweLN6.jpg)