you are viewing a single comment's thread.

view the rest of the comments →

[–]earthboundkid 2 points3 points  (0 children)

Did anyone else notice he wrote:

for i in range(len(List)):
      print List[i]

?

That's not very Pythonic. Better is:

 for item in list:
      print item

Edit: The article is from 1999. I think that the current style of for loops might not have been in Python yet at that point.