-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTest Taker app.py
50 lines (40 loc) · 1.35 KB
/
Test Taker app.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
print('Welcome To Test Taker! , Developed By Redwan')
print(' ## GIVE ANSWER IN LOWERCASE ##')
play = input('Are you ready to play(yes/No): ')
score = 0
total_question = 5
if play.lower() == 'yes':
play = input('1. which programing language i used to make this Test Taker app? ')
if play.lower() == 'python':
score += 1
print('correct')
else:
print('incorrect. you are so close try again.')
play = input('2. What is the capital of Bangladesh? ')
if play.lower() == 'dhaka':
score +=1
print('correct')
else:
print('incorrect. you are so close try again.')
play = input('3. what is 2+2-1+3*0-1+2+3? ')
if play.lower() == '0':
score +=1
print('correct')
else:
print('incorrect. you are so close try again.')
play = input('4. Who is the developer of this Test Taker app? ')
if play.lower() == 'redwan':
score +=1
print('correct')
else:
print('incorrect. you are so close try again.')
play = input('5. How many bones in Human body? ')
if play.lower() == '206':
score +=1
print('correct')
else:
print('incorrect. you are so close try again.')
print('Thank you for playing Test Taker, you got',score,"Question qurrect. ")
mark = (score/total_question) * 100
print('mark: ', mark)
print('Good Bye')