-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy.py
More file actions
41 lines (41 loc) · 1.16 KB
/
Copy pathmy.py
File metadata and controls
41 lines (41 loc) · 1.16 KB
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
print("Welcome To My Project ")
print("1.Guess The Number")
print("Welcome To Guess The Number Quiz")
print("Their are 2 level ")
print("1.Easy\n2.Hard")
print("Press 1 for Easy or press 2 for Hard")
b = input()
if b == 1:
print("Quiz 1 Question")
print("How many legs does a spider have?")
print("Option:\na.7\nb.8\nc.6\nd.9")
c = input()
if c == 8:
print("Correct answer")
else:
print("Incorrect Answer")
print("What is the color of an emerald?")
print("option:\na.White\nb.Cyan\nc.Violet\nd.Green")
c = input()
if c == ("Green"):
print("Correct Answer")
else:
print("Incorrect Answer")
elif b == 2:
print("Quiz 1 Question")
print("How many legs does a spider have?")
print("Option:\na.7\nb.8\nc.6\nd.9")
c = input()
if c == 8:
print("Correct answer")
else:
print("Incorrect Answer")
print("What is the color of an emerald?")
print("option:\na.White\nb.Cyan\nc.Violet\nd.Green")
c = input()
if c == ("Green"):
print("Correct Answer")
else:
print("Incorrect Answer")
else :
print("tata")