Loops
eharetea

Basic for loop with an embedded if statement.

Python loops.

Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Friday August 01st, 2008 02:02 AM

//basic syntax:

for key in items:

    if key in test:
        /* some code */

    elif key in other:
        /* some code */

    else:
        /* some code */

else: print 'Key Not Found!'