Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import random
  2. num = random.randint(0, 9999999)
  3. points = 0
  4.  
  5. def question(num):
  6.  
  7.     if num == X:
  8.         ans = raw_input("Question: ")
  9.     if ans == 'rightanswer'
  10.         points = points +1
  11.         num = random.randint(0, 9999999)
  12.  
  13.     if num == Y:
  14.         ans = raw_input("Question: ")
  15.     if ans == 'rightanswer'
  16.         points = points +1
  17.         num = random.randint(0, 9999999)
  18.  
  19. while points < 10:
  20.     question(num)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement