Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion quiz_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,19 @@
else:
print("Incorrect!")

answer = input("What does AI stand for? ")
if answer.lower() == "artificial intelligence":
print('Correct!')
score += 1
else:
print("Incorrect!")

answer = input("Who is The CEO of Tesla?")
if answer.lower() == "elon musk":
print('Correct!')
score += 1
else:
print("Incorrect!")

print("You got " + str(score) + " questions correct!")
print("You got " + str((score / 4) * 100) + "%.")
print("You got " + str((score / 6) * 100) + "%.")