-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuiz_game.py
38 lines (31 loc) · 834 Bytes
/
Quiz_game.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
print("Welcome to my computer quiz!")
playing = input("Do you want to play quiz? ")
if playing != "yes":
quit()
print("Okay! Let's play :) ")
score=0
answer = input("What does EC2 stands for? ")
if answer.lower() == "elastic cloud compute":
print("Correct!")
score += 1
else:
print("Incorrect!")
answer = input("What does PWD stands for? ")
if answer.lower() == "present working directory":
print("Correct!")
score += 1
else:
print("Incorrect!")
answer = input("What is the command for creating new directory? ")
if answer.lower() == "mkdir":
print("Correct!")
score += 1
else:
print("Incorrect!")
answer = input("Which package manager used in ubuntu? ")
if answer.lower() == "apt":
print("Correct!")
score += 1
else:
print("Incorrect!")
print("Your score is: "+ str(score))