From 6d5b543eee9638c91c0182cfd6d551c0768c3b58 Mon Sep 17 00:00:00 2001 From: L1QuixD <121776850+L1QuixD@users.noreply.github.com> Date: Wed, 28 Jun 2023 22:37:21 -0400 Subject: [PATCH] Updated Quize Game with some more questions --- quiz_game.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/quiz_game.py b/quiz_game.py index 082b9be..ba1eade 100644 --- a/quiz_game.py +++ b/quiz_game.py @@ -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) + "%.") \ No newline at end of file +print("You got " + str((score / 6) * 100) + "%.") \ No newline at end of file