repl.it
@FuyuWinter/

Skewl Quiz

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
print("The quiz has not started yet.")
print("Reminder. A, B and C are just suggestions.")
eyeC = raw_input("What is your eye colour: ").lower()
favA = raw_input("What is your favourite animal: ").lower()
print("\r\n" * 50)

questions = ["Say there is a frog. Dead in the center of a circle. How long would it take for this frog to go out and in TWICE?\nA. 1 Day\nB. A few days\nC. He can't\n", "Finish the sentence. 2 + 2 is 4 -1 thats 3 ----- ----\nA. Quick math\nB. Smart math\nC. Thats nice\n", "Who drugged the guards?\nA. Macbeth\nB. Lady Macbeth\nC. King Duncan\n", "Pretend you are a bus driver. 7 people got on your bus... 5 people leave... 3 people get on on... and 1 person leaves... What is the bus drivers eye colour?\n", "If you feed me I live but if you give me a drink I die, what am I?\n", "How did Bradley hurt his wrist?\nA. 1 armed pull ups\nB. Stopping a shot in football\nC. Swatting a fly\n", "What is MY favourite animal?\n", "1982 x 4.7 / 100 x Omg = ?\nA. 9315.4\nB. 4657.7\nC. 0\n", "BOB THE BUILDER CAN HE FIX IT -- -- ----\n", "How much wood could a woodchuck chuck if a woodchuck could chuck wood?\nA. Quite a lot\nB. Too much to count\nC. Far more than normal\n", "If food is to plate what is leaf to?\nA. Tree\nB. Forest\nC. Bush\n", "1 + 1 = ?\nA. 2\nB. 3\nC. -1\n", "(745 x 2) -(90 x 3) = ?\n", "What does this mean? 01010011 01101000 01101001 01101110 01100100 01100101 01101001 01110010 01110101\n"]
answers = ["c", "a", "b", eyeC, "fire", "b", favA, "c", "no he cant", "a", "twig", "window", "1220", "shindeiru"]

num = 0

while True:
  try:
    question = raw_input(questions[num])
    if question.lower() == answers[num]:
      print("Done #%s" % num)
      num += 1
    else:
      print("You failed on #%s" % num)
      num = 0
  except:
    print("You have completed the quiz. Press enter to exit.")
    raw_input("")
    break
Fetching token
?