GAME 1 – INTERACTIVE GUESSING GAME
This script is an interactive guessing game, which will ask the user to guess a number between 1 and 99.
First play the game. Then you should study the code. Could you create this game yourself?
While Python includes many built-in functions, some functions exist in separate programs called modules. You can use these functions by importing their modules into your program with an import statement.
Line 1 imports the module named random so that the program can call random.randint(). This function will come up with a random number for the user to guess.
!Remember that we have already used the turtle and the screen module.
GAME 2- HANGMAN GAME
This script is a simple form of the hangman game. The player has to find the hidden word.
First, play the game. Then you should study the code. Could you create this game yourself? Try it out! Look at the solution every time you can not figure out how to proceed.