-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadventure.py
54 lines (44 loc) · 1.16 KB
/
adventure.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import time
true = ["T", "t", "True"]
false = ["F", "f", "False"]
correct = 0 #Storing the correct answers
name = input ("What's your name?") #Storing the user's name
print "\nOK, " + name +", let's get started. Remember, the following answers are only True or False."
time.sleep(2)
print ("\nParis is the captial of France.")
choice = input(">>> ")
if choice in true:
correct += 1 #If correct, the user gets one point
else:
correct += 0
print ("\nEngland is an island.")
choice = input(">>> ")
if choice in false:
correct += 1
else:
correct += 0
print ("\nNorthern Ireland isn't part of Great Britian.")
choice = input(">>> ")
if choice in false:
correct += 1
else:
correct += 0
print ("\nAndorra is between France and Spain.")
choice = input(">>> ")
if choice in true:
correct += 1
else:
correct += 0
print ("\nIran use to be part of the Perisan Empire.")
choice = input(">>> ")
if choice in true:
correct += 1
else:
correct += 0
print ("\nTurkmenistan isn't a real country.")
choice = input(">>> ")
if choice in false:
correct += 1
else:
correct += 0
print "\nYou're finished, " + name +". You got", correct, "out of 6 correct."