Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,820 --> 00:00:08,140
All right, so in this video, what we do is we can very, very nice exercise, it's not complicated,
2
00:00:08,530 --> 00:00:14,500
but it's just for you to practice a little bit more of the concepts that you learn during this course.
3
00:00:14,530 --> 00:00:16,900
OK, so let us.
4
00:00:17,870 --> 00:00:21,860
Basically, take a look at this exercise, then you can go and try to solve it on your own.
5
00:00:21,890 --> 00:00:26,750
I'm going to show you the solutions right away right after you try to solve it on your own.
6
00:00:27,470 --> 00:00:29,360
So the exercise goes like this.
7
00:00:29,370 --> 00:00:36,920
Very, very it should be like not a long time, but it should make sure that you understood the concepts
8
00:00:36,920 --> 00:00:37,940
so far again.
9
00:00:38,930 --> 00:00:45,590
So right to functions function, no one will get a point variable in print.
10
00:00:45,590 --> 00:00:50,930
It's information, so function number one will be used to printing a point.
11
00:00:51,680 --> 00:00:55,970
OK, we'll use the X and the Y coordinates function number two.
12
00:00:56,360 --> 00:01:00,800
He's going to be responsible for getting a point input from the user.
13
00:01:01,820 --> 00:01:08,360
Creating basically these point variable reading the information from the user, the X and Y coordinates
14
00:01:08,720 --> 00:01:10,130
and then returning it.
15
00:01:11,000 --> 00:01:17,300
OK, so a couple of notes about these two questions, they are these two functions.
16
00:01:17,720 --> 00:01:24,230
First of all, what I want you to do is make sure that you are going to write this code without problems.
17
00:01:24,560 --> 00:01:24,970
OK?
18
00:01:25,490 --> 00:01:32,540
Because before you move on to the most more advanced topics and sections, that's important to make
19
00:01:32,540 --> 00:01:34,610
sure that you understand everything so far.
20
00:01:35,360 --> 00:01:42,710
Also, make sure that you use a correct name, basically correct names for both of these functions.
21
00:01:43,490 --> 00:01:50,660
So if you need a function to print information for a point, give these function the proper name it
22
00:01:50,660 --> 00:01:51,440
deserves.
23
00:01:51,950 --> 00:01:52,410
OK.
24
00:01:52,460 --> 00:01:53,480
Don't write down.
25
00:01:53,750 --> 00:01:56,300
Fun one the name of the function.
26
00:01:56,300 --> 00:01:57,500
No, it's not readable.
27
00:01:57,740 --> 00:01:59,920
You cannot figure out what these function does.
28
00:01:59,930 --> 00:02:01,850
You need to look at this implementation.
29
00:02:02,270 --> 00:02:07,820
I wanted to be very, very precise, but we will work like very.
30
00:02:08,930 --> 00:02:11,030
Pay attention to the small details as well.
31
00:02:11,270 --> 00:02:18,860
OK, so also for in the second function, write down the variables, write down everything structured
32
00:02:19,340 --> 00:02:26,270
and make sure that the type of the function is exactly what it should be based on the things that you
33
00:02:26,270 --> 00:02:29,810
return and based on the thing in this case.
34
00:02:30,440 --> 00:02:30,780
Yeah.
35
00:02:30,800 --> 00:02:32,090
So take your time.
36
00:02:32,360 --> 00:02:33,110
Think about it.
37
00:02:33,950 --> 00:02:35,660
Write down the solution on your own.
38
00:02:35,660 --> 00:02:40,700
Write down also the main function to test out the calling for these two functions.
39
00:02:40,700 --> 00:02:47,930
That is also important part not only writing down the functions themselves, but also calling the functions
40
00:02:47,930 --> 00:02:53,120
and making sure that the work is expected and you can take usage of them.
41
00:02:53,570 --> 00:02:53,930
OK.
42
00:02:54,080 --> 00:02:54,640
Good luck.
43
00:02:54,650 --> 00:02:58,310
I'll see you in the solutions video once you are finished by.
4059
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.