SHARE
TWEET

Snipped from a file named "topten.py"

a guest Oct 25th, 2012 1,332 Never
  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]
RAW Paste Data
Top