Hi, welcome back.
In this video, we will start quoting Hangman Game Project, so let's begin.
Firstly, we will open new Python notebook file to start our project as the following click on file,
then new The Notebook and choose Python three and click select to our new Python notebook and rename
it to Hangman Game Project and start our project by Copy our hurtfulness into it and make two spaces
or two lines after every note to add our code in these empty lines.
The first step to import random module so the code will be on board.
TransAm then from hangmen underscore guessing that by we will import the guest list as the following
from hangmen guessing import guess list to import the words to be chosen by the random module.
So the guessing word will equal random choice.
And between the two parentheses of the choice method of random module, we will add.
That gets less as a following note that there is an incredible option in job and job at a notebook you
can use to remember methods by pressing tab after that, not so random that tab and select a choice
method that we will use to pick a random word, the guest list.
Then we will assign a variable called war.
The letters or word underscore letters to the length of the guessing, underscore word variable.
That we declare in the last line to get all the letters in the choosing world by the random module,
then we will create two variables.
The first variable is game underscore over as a volume data type variable, equal false value.
So the game is on and the second variable is rise as integer data type variable, equal sex.
So the game is on and players have six tries to attempt them from the hangmen.
Underscore in life the by module.
We were involved in the game.
Name the following.
From hangmen underscore life and board game name, then Brent is a game name by using the Brent function
to be shown to the players.
So Brent between two parentheses game underscore name, then test our first good part of the project
by using the Python print function with the strength for me function to Brent that choosing Walt by
the random module.
Add the following Brent between two parentheses f between two single codes.
The word you guessed is between two curly brackets getting underscore Walt close the second code and
close the second parentheses and run the code.
We will get hangmen and the word you guess is Lentol.
At this point we reach the end of this lecture.
I hope you enjoyed this lecture and get all of that.
Thanks for being here.
See you next lecture.