Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:12,570 --> 00:00:19,680
I am well and welcome in this new video in this video, we're going to talk about the Loop Wayne the
2
00:00:19,680 --> 00:00:28,950
loop line is less important, according to me, true of the loop fork, but sometimes it's very necessary
3
00:00:28,950 --> 00:00:29,550
to use it.
4
00:00:32,400 --> 00:00:42,990
The loop right walk exactly as the loop form, but with the loop form, you tend to pattern that you
5
00:00:42,990 --> 00:00:51,300
want to run the loop in two, for example, here from six to 13.
6
00:00:52,680 --> 00:01:04,440
But in the loop, while you are going to tend to python that you want to run a loop until a condition
7
00:01:04,650 --> 00:01:05,460
is true.
8
00:01:05,790 --> 00:01:16,410
So it is a combination between the condition as if and the loop for, but it is really easy to use.
9
00:01:16,630 --> 00:01:27,270
So while, for example, it is lower or equal to 15.
10
00:01:29,650 --> 00:01:38,590
I will print it, and if I launch this, I will have an error.
11
00:01:38,950 --> 00:01:39,430
Why?
12
00:01:39,880 --> 00:01:50,980
Because you needed to initialize the variable, so I initialize at one.
13
00:01:51,280 --> 00:02:04,960
But as we can see, we have an infinite loop one because I want to show you that there must come a problem
14
00:02:04,960 --> 00:02:08,650
when you work with a while loop.
15
00:02:09,070 --> 00:02:11,890
It is that we've been there.
16
00:02:12,130 --> 00:02:14,680
You can create an infinite loop.
17
00:02:18,130 --> 00:02:28,870
So to fix this issue, you need to increment the viable to one at each step.
18
00:02:29,890 --> 00:02:33,920
And now we have a correct way.
19
00:02:34,140 --> 00:02:45,160
Look, but it is really important to understand that sometimes like for us in the next chapter, we
20
00:02:45,160 --> 00:02:50,290
are going to use the loop right to create an infinite loop.
21
00:02:50,590 --> 00:02:58,180
So it is very important to understand that usually you don't want to have this issue, but sometimes
22
00:02:58,390 --> 00:03:04,230
you want to create this issue to walk with a specific cook.
2224
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.