-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz.py
40 lines (32 loc) · 962 Bytes
/
quiz.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
print("Welcome to my quiz!")
playing = input("Do you want to play? ")
if playing.lower() != "yes":
quit()
print(" so Let's play :)")
score = 0
answer = input("What does EBIDTA stands for ? ")
if answer.lower() == "earnings before interest, taxes, depreciation, and amortization":
print('Correct!')
score += 1
else:
print("Incorrect!")
answer = input("Which language is this program written in? ")
if answer.lower() == "python":
print('Correct!')
score += 1
else:
print("Incorrect!")
answer = input("Who is best person in this world? ")
if answer.lower() == "karan":
print('Correct!')
score += 1
else:
print("Incorrect!")
answer = input("which language is used for game dev? ")
if answer.lower() == "c#":
print('Correct!')
score += 1
else:
print("Incorrect!")
print("You got " + str(score) + " questions correct!")
print("You got " + str((score / 4) * 100) + "%.")