Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- num = random.randint(0, 9999999)
- points = 0
- def question(num):
- if num == X:
- ans = raw_input("Question: ")
- if ans == 'rightanswer'
- points = points +1
- num = random.randint(0, 9999999)
- if num == Y:
- ans = raw_input("Question: ")
- if ans == 'rightanswer'
- points = points +1
- num = random.randint(0, 9999999)
- while points < 10:
- question(num)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement