-
Notifications
You must be signed in to change notification settings - Fork 1
/
simple_game
88 lines (69 loc) · 2 KB
/
simple_game
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
print('Hello!!!!')
ans = input('Are you ready to play(Yes/No)? ')
score = 0
total_q = 10
if ans.lower() == 'yes':
ans = input('1. What is best programming language? ')
if ans.lower() == 'python':
score +=1
print('Correct')
else:
print('Incorrect')
ans = input('2. What is 200+450-23? ')
if ans.lower() == '627':
score +=1
print('Correct')
else:
print('Incorrect')
ans = input('3. Currency of India? ')
if ans.lower() == 'rupees':
score +=1
print('Correct')
else:
print('Incorrect')
ans = input('4. Has India got the World cup in Cricket ever? ')
if ans.lower() == 'yes':
score +=1
print('Correct')
else:
print('Incorrect')
ans = input('5. What is costlier gold or platinum? ')
if ans.lower() == 'platinum':
score +=1
print('Correct')
else:
print('Incorrect')
ans = input('6. Which Monument is the symbolism of Showing love? ')
if ans.lower() == 'taj mahal':
score +=1
print('Correct')
else:
print('Incorrect')
ans = input('7. Traditional wear of women in India? ')
if ans.lower() == 'saree':
score +=1
print('Correct')
else:
print('Incorrect')
ans = input('8. Is JavaScript a scripting or programming language? ')
if ans.lower() == 'scripting':
score +=1
print('Correct')
else:
print('Incorrect')
ans = input('9. Can ML be used in checking spam emails? ')
if ans.lower() == 'yes':
score +=1
print('Correct')
else:
print('Incorrect')
ans = input('10. Full form of AI in field of computer science? ')
if ans.lower() == 'Artificial Intelligence':
score +=1
print('Correct')
else:
print('Incorrect')
print('Thankyou for playing , your score is: ', score,"questions correct.")
mark = (score/total_q) * 100
print("score:", mark)
print('GOODBYE!!!!')