Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
def quiz(question, realAnswer):
    answer = input(question)
    if answer == realAnswer:
        print("Very clever!")
    else:
        print("Incorrect. :( It's "+realAnswer)

quiz("\nWhat is the powerhouse of the cell?", "mitochondria")
quiz("\nWhat is 1+1?", "2")
quiz("\nWhat is '1'+'1'?", "11")
quiz("\nWhat is the color of the sky?", "blue")

print ("Thanks for playing the game!")
Python 3.6.1 (default, Dec 2015, 13:05:11) [GCC 4.8.2] on linux