-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
55 lines (40 loc) · 1.4 KB
/
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
#User Name
UserName = input("Hi, I am Yoshitha Rathnayake. What is your name? - ")
print("Hello, " + UserName + ". Welcome to my Quiz that I made using Python (Language). I am Asking 5 question from you.")
#Question 1
Question1 = input("1. What is the highest mountain in the world? = ")
Answer1 = "Mount Everest"
if Question1 == Answer1:
print("Well done! You are correct. Next >")
else:
print("You are wrong! Answer : Mount Everest")
#Question 2
Question2 = input("2. What is the longest river in the world? = ")
Answer2 = "Nile River"
if Question2 == Answer2:
print("Great! You are correct. Next >")
else:
print("You are wrong! Answer : Nile River")
#Question 3
Question3 = input("3. What is the deepest point in the world? = ")
Answer3 = "Mariana Trench"
if Question3 == Answer3:
print("Well done! You are correct. Next >")
else:
print("You are wrong! Answer : Mariana Trench")
#Question 4
Question4 = input("4. What is the largest continent in the world? = ")
Answer4 = "Asia"
if Question4 == Answer4:
print("Great! You are correct. Next >")
else:
print("You are wrong! Answer : Asia")
#Question 5
Question5 = input("5. What is the biggest desert in the world? = ")
Answer5 = "Sahara Desert"
if Question5 == Answer5:
print("Well done! You are correct. Next >")
else:
print("You are wrong! Answer : Sahara Desert")
#"Thank You" Greating
print("Thank you for answer my Quiz!")