-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz_game.py
More file actions
38 lines (32 loc) · 963 Bytes
/
Copy pathquiz_game.py
File metadata and controls
38 lines (32 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
print("Welcome to Nature's Quiz Game.")
play = input("Do you want yo play, Y/N? ")
if play.lower() != "y":
quit()
print("Okay! Lets play, please answer in small letters.")
score = 0
answer = input("What is the color of the sky? ").lower()
if answer == "blue":
print("Correct!")
score += 1
else:
print("Incorrect! ")
answer = input("How many planets are in our solar system? ").lower()
if answer == "8":
print("Correct!")
score += 1
else:
print("Incorrect! ")
answer = input("Does nature illustrate God's ability? ").lower()
if answer == "yes":
print("Correct!")
score += 1
else:
print("Incorrect! ")
answer = input("What am I seeing, hearing, feeling, smelling & tasting? ").lower()
if answer == "things":
print("Correct!")
score += 1
else:
print("Incorrect! ")
print("You got " + str(score) + "/5" + " questions correct!")
print("You got " + str(score/5 * 100) + "%")