Lets say you have a list like this:
x = ("a", "b", "c", "d")One way to loop through the list is like this:
for item in x: print "item = ", itemAnother way of looping is like this:
for counter in range(len(x)): print "item = ", x[counter]
a design studio at the Department of Architecture, National University of Singapore
No comments:
Post a Comment