1
00:00:00,070 --> 00:00:04,750
All right guys. So to get started head over to the starting Repl.it file

2
00:00:04,960 --> 00:00:07,660
which you'll be able to find in the course resources,

3
00:00:08,080 --> 00:00:13,080
and you should see a pretty much empty file as well as three to-dos for you to

4
00:00:13,930 --> 00:00:18,790
complete. All I've got here is a list of three words,

5
00:00:18,850 --> 00:00:20,890
ardvark, baboon, and camel.

6
00:00:21,340 --> 00:00:25,660
And we're going to be choosing a random word from that list

7
00:00:26,110 --> 00:00:28,930
and then we're going to ask the user to guess a letter,

8
00:00:29,440 --> 00:00:34,440
and then we're going to check if that letter matches one of the letters in the

9
00:00:35,140 --> 00:00:35,980
chosen word.

10
00:00:36,310 --> 00:00:40,930
So we're basically just tackling the first part of this flowchart up to about

11
00:00:40,930 --> 00:00:44,680
here. Once you've completed all three to-dos here,

12
00:00:45,010 --> 00:00:48,610
you should have something that will function more or less like this.

13
00:00:48,790 --> 00:00:51,430
So this is the end result of step 1

14
00:00:51,880 --> 00:00:56,320
and it should ask us to guess a letter. So let me try a.

15
00:00:57,010 --> 00:01:02,010
And it shows me that this a matches with the first letter in the word,

16
00:01:04,120 --> 00:01:06,310
as well as the fourth letter in the word.

17
00:01:06,640 --> 00:01:11,640
So I'm pretty sure that the word that it picks randomly was actually ardvark.

18
00:01:12,340 --> 00:01:17,340
Essentially, your code is gonna loop through each of the letters in the chosen

19
00:01:17,590 --> 00:01:18,310
word,

20
00:01:18,310 --> 00:01:23,110
and then check it against the word that the user entered and report back

21
00:01:23,200 --> 00:01:27,910
whether if it matched any of the letters in the word. Now,

22
00:01:27,910 --> 00:01:29,110
if you need a hint,

23
00:01:29,170 --> 00:01:34,170
then head over to the course resources and you'll see a link that's marked as a

24
00:01:34,810 --> 00:01:37,270
hint. And once you click on it,

25
00:01:37,390 --> 00:01:42,100
it'll take you to this page where it talks about how to use the for loop

26
00:01:42,160 --> 00:01:47,110
with a list in Python. Have a read through the section and then go back,

27
00:01:47,210 --> 00:01:51,520
try to tackle the to-dos and see if that helps you. All right.

28
00:01:51,520 --> 00:01:55,390
So have a play around with the final version and once you're ready,

29
00:01:55,510 --> 00:02:00,510
go-ahead fork a copy of the starting file for day 7 step one,

30
00:02:01,570 --> 00:02:04,720
and tackle the to-dos one by one. Good luck.

