This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Snipped from a file named "topten.py"

By: a guest on Oct 25th, 2012  |  syntax: Python  |  size: 0.96 KB  |  views: 1,280  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. for thing in tenlist:
  2.     first = assigner(tenlist[0])
  3.     listlength -= 1
  4.     if listlength == 0:
  5.         break
  6.     second = assigner(tenlist[1])
  7.     listlength -= 1
  8.     if listlength == 0:
  9.         break
  10.     third = assigner(tenlist[2])
  11.     listlength -= 1
  12.     if listlength == 0:
  13.         break
  14.     fourth = assigner(tenlist[3])
  15.     listlength -= 1
  16.     if listlength == 0:
  17.         break
  18.     fifth = assigner(tenlist[4])
  19.     listlength -= 1
  20.     if listlength == 0:
  21.         break
  22.     sixth = assigner(tenlist[5])
  23.     listlength -= 1
  24.     if listlength == 0:
  25.         break
  26.     seventh = assigner(tenlist[6])
  27.     listlength -= 1
  28.     if listlength == 0:
  29.         break
  30.     eigth = assigner(tenlist[7])
  31.     listlength -= 1
  32.     if listlength == 0:
  33.         break
  34.     nineth = assigner(tenlist[8])
  35.     listlength -= 1
  36.     if listlength == 0:
  37.         break
  38.     tenth = assigner(tenlist[9])
  39.  
  40. stuff = [first, second, third, fourth]
  41.  
  42. print stuff[0 and 1]
clone this paste RAW Paste Data