Chicago Python Workshop/Lecture/Loops: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

24 November 2012

  • curprev 05:0805:08, 24 November 2012imported>Codersquid 3,460 bytes +3,460 Created page with "== For loops == Use a <code>for</code> loop to do something to every element in a list. <pre> >>> names = ["Jessica", "Adam", "Liz"] >>> for name in names: ... print nam..."