@VesterDE/

# Final project

## No description

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
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
from colorama import Fore
import os
def newGame():
os.system('clear')
print(Fore.YELLOW)
print('How smart are you?')
print(Fore.WHITE)
print('level 1')
print('level 2')
print('level 3')
print(Fore.LIGHTYELLOW_EX)
print('CHOOSE ONE OF THE ABOVE')

x = input()
if x == "1":
print(Fore.YELLOW)
print('This is a test question, if you get it wrong you will need to start over')
print('what is 1 + 1?')
x = input()
if x == "2":
print(Fore.WHITE)
print('well done!')
print('What is 64 / 8?')
x = input()
if x == "8":
print(Fore.LIGHTYELLOW_EX)
print('wOW! only 3 more questions to go!')
print(Fore.WHITE)
print('9kg = ?g')
x = input()
if x == "9000":
print(Fore.LIGHTYELLOW_EX)
print('YAY! 2 in a row!!! keep on going! 2 more questions until you level up!!!')
print(Fore.WHITE)
print('how would you write 2.5 as an improper fraction? use "/" as the division bar and do not leave any spaces in between the numbers')
x = input()
if x == "5/2":
print(Fore.LIGHTYELLOW_EX)
print('Well done!! One more to go...')
print(Fore.WHITE)
print('What is the Ocean between Europe and America? ~When answering just mention the name, e.g. Pacific.(Capitalised)')
x = input()
if x == "Atlantic":
print(Fore.LIGHTYELLOW_EX)
newGame()
else:
print('Aw, you were almost there :(')
newGame()
else:
print('Try again...')
newGame()
else:
print('Try again...')
newGame()
else:
print('Try again...')
newGame()
else:
newGame()

if x == "2":
print(Fore.WHITE)
print('Who wrote Macbeth?')
x = input()
if x == "Shakespeare":
print(Fore.LIGHTYELLOW_EX)
print('Well done! Only 3 more to go..')
print(Fore.WHITE)
print('Can you find protons in an atom?(Yes / No)')
x = input()
if x == "Yes":
print(Fore.LIGHTYELLOW_EX)
print('YAY! 2 in a row!!! keep on going! 2 more questions until you level up!!!')
print(Fore.WHITE)
print('How many Harry Potter books are there?')
x = input()
if x == "7":
print(Fore.LIGHTYELLOW_EX)
print('Well done!! One more to go...')
print(Fore.WHITE)
print('Answer this one as quick as you can...')
print('200 + 300 - 100')
x = input()
if x == "400":
print(Fore.LIGHTYELLOW_EX)
newGame()
else:
print('Aw, you were almost there :(')
newGame()
else:
print('Try again...')
newGame()
else:
print('Try again...')
newGame()
else:
print('Try again...')
newGame()

if x == "3":
print(Fore.WHITE)
print('Is the name of this renowned author spelled corectly? Jane Austin (Yes / No)')
x = input()
if x == "No":
print(Fore.LIGHTYELLOW_EX)
print('Well done! Only 3 more to go..')
print(Fore.WHITE)
print('What is the chemical symbol for Potassium?')
x = input()
if x == "K":
print(Fore.LIGHTYELLOW_EX)
print('YAY! 2 in a row!!! keep on going! 2 more questions until you level up!!!')
print(Fore.WHITE)
print('Who painted Girl with a Pearl Earring? (only last name)')
x = input()
if x == "Vermeer":
print(Fore.LIGHTYELLOW_EX)
print('Well done!! One more to go...')
print(Fore.WHITE)
print('What is the capital of Australia?')
x = input()
if x == "Canberra":
print(Fore.LIGHTYELLOW_EX)
ending = 'WOW... Congratulations! You passed the hardest challenge!!! (Did you cheat???) ~ also I used what we learned in class with strings (and slices) to write this message. hikjhgfdcvgbhouk5jr4nesdxcghn'
print(ending[0:167])

else:
print('Aw, you were almost there :(')
newGame()
else:
print('Try again...')
newGame()
else:
print('Try again...')
newGame()
else:
print('Try again...')
newGame()

newGame()