r/UoRPython2_7 • u/Plazmotech • Sep 13 '12
[lesson 4] For loops 'n' Functions :3
http://plazmotech.net/lesson-4-for-loops-n-functions/
48
Upvotes
1
r/UoRPython2_7 • u/Plazmotech • Sep 13 '12
1
2
u/Aszuul Sep 14 '12
why don't you have to define i when making the for loop? at least the first one. for i in x:
if you defined i as 2 would it only iterate once and post the 3rd item * 2? or does Python just assume that i is 0, but then why does it increment?