1
00:00:00,580 --> 00:00:02,770
Hello, dear friends, everybody needs exercise.

2
00:00:02,830 --> 00:00:08,710
Well, this is the section of our course that we're going to put together a few of these fundamental

3
00:00:08,710 --> 00:00:14,230
things about python programming, like data types, conditionals, loops, functions, modules, and,

4
00:00:14,680 --> 00:00:16,420
well, whatever else we can throw in here.

5
00:00:17,830 --> 00:00:21,490
Now we're going to try to do an exercise to test our knowledge, right.

6
00:00:22,580 --> 00:00:26,180
So do you know a game called Rock, Paper, Scissors?

7
00:00:26,720 --> 00:00:27,500
I know you do.

8
00:00:27,950 --> 00:00:30,830
But what does it have to do with this exercise in Python?

9
00:00:31,550 --> 00:00:32,900
Well, let's try to do it.

10
00:00:33,410 --> 00:00:35,960
But how you say let's show you.

11
00:00:36,710 --> 00:00:40,460
First, we're going to need to know the logic of the game, right?

12
00:00:40,490 --> 00:00:41,210
It's simple.

13
00:00:41,630 --> 00:00:47,150
Rock, beats, scissors, paper, beats, rock, scissors, beats, paper.

14
00:00:47,840 --> 00:00:49,790
So these are the main rules about the game, right?

15
00:00:50,990 --> 00:00:51,920
Now let's analyze.

16
00:00:53,060 --> 00:00:57,890
We need to import random and time modules.

17
00:00:58,820 --> 00:01:03,800
So here we actually don't need the time module, but it gives us a kind of a cool thing in our game,

18
00:01:03,800 --> 00:01:06,560
you'll see define some variables.

19
00:01:10,510 --> 00:01:13,390
Create if Ayliffe else, blocks.

20
00:01:16,250 --> 00:01:23,450
Great, why loops and we'll need to calculate all the possibilities about the game, like drawing,

21
00:01:23,450 --> 00:01:24,590
winning and losing.

22
00:01:25,580 --> 00:01:26,480
All right, you with me?

23
00:01:26,600 --> 00:01:29,570
It's actually basic logic in our game.

24
00:01:30,350 --> 00:01:31,730
So you should try to coat it.

25
00:01:32,300 --> 00:01:38,480
And then in the next lesson, I'll show you how to code it and we'll compare notes.

26
00:01:38,840 --> 00:01:40,400
So I hope to see in the next lesson.

27
00:01:40,910 --> 00:01:43,070
Or you could just get right to it.

28
00:01:43,310 --> 00:01:44,600
Until then, have a great day.
