Page 1 of 1

PYTHON CODE: The Quiz game asks the player questions about animals. They have three chances to answer each question you

Posted: Fri Apr 29, 2022 6:45 am
by answerhappygod
PYTHON CODE:
The Quiz game asks the player questions about animals. They have
three chances to answer each question you don’t want to take the
quiz too difficult. Each correct answer will score a point. At the
end of the game, the program will reveal the player’s final score.
This quiz game uses a function; a block of code with a name that
performs a specific task. A function allows you to use the same
code several times, without having to type everything each time.
Python has a lot of built-in functions, but it also allows you to
create your functions. The program should continue to check if
there are any questions to ask and if the player has exhausted all
his chances. The score is stored in a variable during the game.
Once all the questions have been answered, the game ends.