Skip to content

Instantly share code, notes, and snippets.

@Reiot
Created April 25, 2011 06:13
Show Gist options
  • Save Reiot/940224 to your computer and use it in GitHub Desktop.
Save Reiot/940224 to your computer and use it in GitHub Desktop.

Revisions

  1. Reiot created this gist Apr 25, 2011.
    8 changes: 8 additions & 0 deletions gistfile1.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    l = [1,2,3,4,5]

    for v in reversed(l):
    print v

    for v in l[::-1]:
    print v