1
00:00:00,840 --> 00:00:02,050
Hi, welcome back.

2
00:00:02,100 --> 00:00:08,320
In this video, we will start quoting Hangman Game Project, so let's begin.

3
00:00:08,940 --> 00:00:18,570
Firstly, we will open new Python notebook file to start our project as the following click on file,

4
00:00:18,720 --> 00:00:29,580
then new The Notebook and choose Python three and click select to our new Python notebook and rename

5
00:00:29,580 --> 00:00:39,720
it to Hangman Game Project and start our project by Copy our hurtfulness into it and make two spaces

6
00:00:40,140 --> 00:00:47,040
or two lines after every note to add our code in these empty lines.

7
00:00:47,220 --> 00:00:54,030
The first step to import random module so the code will be on board.

8
00:00:54,030 --> 00:01:05,760
TransAm then from hangmen underscore guessing that by we will import the guest list as the following

9
00:01:07,110 --> 00:01:18,410
from hangmen guessing import guess list to import the words to be chosen by the random module.

10
00:01:18,780 --> 00:01:24,300
So the guessing word will equal random choice.

11
00:01:25,560 --> 00:01:33,450
And between the two parentheses of the choice method of random module, we will add.

12
00:01:34,540 --> 00:01:43,870
That gets less as a following note that there is an incredible option in job and job at a notebook you

13
00:01:43,870 --> 00:01:54,850
can use to remember methods by pressing tab after that, not so random that tab and select a choice

14
00:01:54,850 --> 00:02:01,020
method that we will use to pick a random word, the guest list.

15
00:02:01,420 --> 00:02:05,050
Then we will assign a variable called war.

16
00:02:05,050 --> 00:02:13,960
The letters or word underscore letters to the length of the guessing, underscore word variable.

17
00:02:15,360 --> 00:02:22,920
That we declare in the last line to get all the letters in the choosing world by the random module,

18
00:02:23,340 --> 00:02:26,100
then we will create two variables.

19
00:02:26,280 --> 00:02:35,510
The first variable is game underscore over as a volume data type variable, equal false value.

20
00:02:35,610 --> 00:02:46,430
So the game is on and the second variable is rise as integer data type variable, equal sex.

21
00:02:46,470 --> 00:02:55,200
So the game is on and players have six tries to attempt them from the hangmen.

22
00:02:55,200 --> 00:02:58,230
Underscore in life the by module.

23
00:02:58,710 --> 00:03:00,420
We were involved in the game.

24
00:03:00,420 --> 00:03:01,950
Name the following.

25
00:03:03,360 --> 00:03:12,090
From hangmen underscore life and board game name, then Brent is a game name by using the Brent function

26
00:03:12,330 --> 00:03:14,720
to be shown to the players.

27
00:03:14,730 --> 00:03:24,900
So Brent between two parentheses game underscore name, then test our first good part of the project

28
00:03:24,900 --> 00:03:32,340
by using the Python print function with the strength for me function to Brent that choosing Walt by

29
00:03:32,340 --> 00:03:33,570
the random module.

30
00:03:34,050 --> 00:03:41,250
Add the following Brent between two parentheses f between two single codes.

31
00:03:41,460 --> 00:03:53,040
The word you guessed is between two curly brackets getting underscore Walt close the second code and

32
00:03:53,040 --> 00:03:56,700
close the second parentheses and run the code.

33
00:03:56,700 --> 00:04:00,990
We will get hangmen and the word you guess is Lentol.

34
00:04:01,500 --> 00:04:04,890
At this point we reach the end of this lecture.

35
00:04:05,290 --> 00:04:08,130
I hope you enjoyed this lecture and get all of that.

36
00:04:08,370 --> 00:04:09,870
Thanks for being here.

37
00:04:11,080 --> 00:04:12,960
See you next lecture.
