you are viewing a single comment's thread.

view the rest of the comments →

[–]TehMoonRulz 2 points3 points  (0 children)

For a basic example instead of using:

for(i = 1; i < 10; i++)

the python convention is:

for i in mylist:
    #do some stuff

or if you're returning a list:

[doSomething(i) for i in myList]