WEBVTT

00:01.000 --> 00:03.320
Okay, now you see, the program is working perfect.

00:03.320 --> 00:05.120
And there is one problem.

00:05.120 --> 00:05.480
Okay?

00:05.680 --> 00:06.880
Actually, it's not a problem.

00:06.880 --> 00:12.760
It is kind of weakness that is failing my terminal with doing this package.

00:12.760 --> 00:14.000
Send for package.

00:14.000 --> 00:19.160
Send six, eight, ten, 12 and a lot of this kind of text.

00:19.160 --> 00:22.520
So it is not good for me.

00:22.520 --> 00:27.560
I don't like it, so I try to undo that.

00:27.560 --> 00:28.440
Okay.

00:28.440 --> 00:31.840
So if you want to handle that in Python three Python three.

00:31.840 --> 00:34.200
So we need to do something here.

00:35.680 --> 00:38.680
Uh here we need to use camera okay.

00:40.200 --> 00:43.480
At the end of this we need to use camera.

00:43.480 --> 00:49.480
And right here end is equal to an empty string here.

00:49.480 --> 00:51.000
And it is telling you that.

00:51.040 --> 00:54.880
What do you want to add at the end of your print statement.

00:54.880 --> 00:57.040
Right now I'm telling this that nothing.

00:57.040 --> 00:59.120
Let's go back here and execute.

00:59.120 --> 01:00.680
Let's see what do we have here.

01:06.560 --> 01:07.120
Let's see.

01:08.120 --> 01:10.560
Right now you see we have nothing.

01:11.040 --> 01:16.800
That is because it is, uh, storing everything into a buffer.

01:16.840 --> 01:17.240
Okay.

01:18.400 --> 01:22.440
So let's cancel that after I use the cancel method.

01:22.480 --> 01:28.170
Now you see that everything that is stored into a buffer right now, it now it is printing all those

01:28.170 --> 01:29.090
in one line.

01:29.130 --> 01:38.690
Okay, so we are very close at, uh, our goal at what we want, but that is not what we want, okay.

01:38.730 --> 01:46.170
The thing we want is to be printed this in at the beginning of the line, and then this one here, okay.

01:46.210 --> 01:51.770
Instead of, uh, the first one, I want to print the second one and also this one, but not go to,

01:52.330 --> 01:53.170
uh, second line.

01:53.170 --> 01:53.330
Okay.

01:53.370 --> 01:57.450
I want all this to be printed in the first line, I mean, overwriting that.

01:57.450 --> 02:04.090
So if you want to overwrite that, you need to use at the beginning of this, something called backslash

02:04.090 --> 02:09.610
r, backslash R means to go to the first line at the beginning of line.

02:09.690 --> 02:11.450
This time that is printing.

02:11.490 --> 02:15.050
Go to the first, uh, beginning of the line.

02:15.090 --> 02:15.730
Okay.

02:15.730 --> 02:19.530
Now if I come back here and try to execute this.

02:20.930 --> 02:26.810
Now, you see, uh, four packets and five packets in it.

02:28.690 --> 02:36.530
And like this right now, you see that the program, I think it is completed.

02:36.530 --> 02:41.450
Okay, maybe there is still things that we could improve.

02:41.490 --> 02:45.570
Okay, let's go and see if.

02:45.610 --> 02:47.210
Is there something we could do?

02:47.290 --> 02:49.130
If not, so it is completed.
