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

Why won't this work?

By: a guest on Sep 11th, 2011  |  syntax: Python  |  size: 0.44 KB  |  views: 52  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import random
  2.  
  3. def Main() :
  4.  
  5.         print TESTING
  6.         print
  7.         print
  8.         print "1 1d4"
  9.        
  10.         sum = raw_imput("> ")
  11.        
  12.         if sum == '1':
  13.                 numberr = random.randrange(1, 5)
  14.                         if numberr = 1
  15.                                 print "Small"
  16.                         elif numberr = 2
  17.                                 print "Medium"
  18.                         elif numberr = 3
  19.                                 print "Large"
  20.                         elif numberr = 4
  21.                                 print "Huge"
  22.        
  23. while 1:
  24.         input = raw_input("Press Enter to continue or q to quit").upper()
  25.         if input == 'Q': break
  26.         elif input == '' : Main()
clone this paste RAW Paste Data