Python pour schleife
fibonacci = [0,1,1,2,3,5,8,13,21]
for i in xrange(len(fibonacci)):
print i,fibonacci[i]
print
Marc Tolkmitt
fibonacci = [0,1,1,2,3,5,8,13,21]
for i in xrange(len(fibonacci)):
print i,fibonacci[i]
print
for i in range(rng):
action;
>>> range(10)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
#There are two main loops:
for
#and
while