WEBVTT

00:01.050 --> 00:04.800
By the way, in this lecture we were learning between weddings.

00:06.310 --> 00:11.800
And the global variable and the local variables.

00:12.840 --> 00:14.370
Of pent up anger.

00:14.370 --> 00:14.640
She.

00:16.450 --> 00:19.860
The return estimate makes a function.

00:20.110 --> 00:20.950
Return a weighted.

00:23.910 --> 00:27.030
Let's see a concrete example.

00:29.270 --> 00:32.300
Saying You understand what it means.

00:33.710 --> 00:38.000
For example, we didn't buy a steam or steam.

00:38.000 --> 00:41.600
We still use the x y3.

00:47.930 --> 00:48.410
Here.

00:49.610 --> 00:58.910
For example, we name the some equal X and Y and.

01:00.500 --> 01:00.800
The.

01:02.460 --> 01:07.100
We return, we use the returns they make here.

01:07.140 --> 01:09.390
Return some.

01:11.090 --> 01:11.750
That means.

01:12.820 --> 01:18.570
We ask that function, return the value of a stock.

01:19.300 --> 01:22.330
That means, of course, here.

01:22.520 --> 01:24.040
Also, you can use a print.

01:24.100 --> 01:24.810
Print some.

01:26.640 --> 01:27.540
The differences.

01:27.540 --> 01:38.880
Prentiss Armacost asked to display the same result, but here, it means, will return the value of

01:38.880 --> 01:41.070
sum to the losers.

01:42.520 --> 01:45.150
In fact, they are the same.

01:46.150 --> 01:53.510
But the meaning but different ways of return value, not just plane tickets out.

01:54.220 --> 01:54.440
Okay.

01:55.390 --> 01:57.040
No less, Ryan.

01:58.050 --> 01:58.890
The module.

02:02.190 --> 02:02.990
Because you are.

02:03.000 --> 02:03.800
We see we.

02:05.080 --> 02:09.490
We called these lecture notes.

02:10.960 --> 02:11.980
We turned.

02:13.470 --> 02:14.430
When you.

02:15.850 --> 02:16.870
Global.

02:19.530 --> 02:20.370
Local.

02:24.240 --> 02:28.000
Where he was is lonely, but.

02:28.970 --> 02:39.230
And this name can remind us what's the content of these notes, this quote.

02:39.500 --> 02:39.780
Okay.

02:41.080 --> 02:41.770
Let's see.

02:43.480 --> 02:44.140
Steve.

02:46.680 --> 02:47.160
No.

02:48.060 --> 02:53.010
We just record the punk scene 3 to 1.

02:53.340 --> 02:57.570
For example, see, we got to six.

02:58.680 --> 03:00.420
That's the way to look.

03:00.720 --> 03:01.140
Some.

03:03.710 --> 03:03.950
Okay.

03:04.400 --> 03:06.710
No less.

03:08.510 --> 03:15.470
Ste was global and local first LLC global wearables.

03:16.690 --> 03:20.200
Variables that are carried on the side of function.

03:21.760 --> 03:27.190
Global variables can be used both inside and outside of functions.

03:29.560 --> 03:31.450
Let's see an example.

03:32.790 --> 03:33.450
Uh.

03:45.000 --> 03:47.580
Benoit Global.

03:52.660 --> 03:55.990
Variables or variable or variables.

04:00.060 --> 04:03.000
We still use.

04:04.790 --> 04:07.850
Uh, but maybe we modified a little bit.

04:09.480 --> 04:10.260
We have.

04:12.690 --> 04:13.200
Son.

04:13.530 --> 04:15.840
We may change the name and.

04:24.580 --> 04:25.000
Here.

04:27.110 --> 04:27.680
We?

04:29.650 --> 04:33.640
Hey, we're ready for x x equal.

04:35.470 --> 04:35.890
We're here.

04:35.890 --> 04:36.790
We're at a function.

04:38.800 --> 04:41.590
In the punk scene we have just.

04:42.740 --> 04:44.420
To where two was.

04:46.430 --> 04:47.150
That's why.

04:50.750 --> 04:51.290
We?

04:54.010 --> 04:55.170
God and.

04:56.260 --> 04:59.350
Maybe he was x, y and we could use others.

05:01.330 --> 05:01.690
A.

05:04.340 --> 05:05.360
A and a B.

05:10.900 --> 05:12.190
Here we go to see.

05:15.510 --> 05:16.020
A.

05:17.820 --> 05:18.600
And we.

05:21.640 --> 05:28.060
Then we can return the seat or just the privacy is okay.

05:28.450 --> 05:29.170
We can print.

05:30.980 --> 05:34.870
You can use the internet or here you can use range.

05:35.000 --> 05:35.360
See.

05:37.240 --> 05:38.080
These are available.

05:38.740 --> 05:42.610
We called is global and it is an author site.

05:43.030 --> 05:44.440
The auction.

05:45.500 --> 05:51.080
See, this is the function, but this variable is outside this function.

05:52.550 --> 05:54.050
Let's go and run.

05:56.420 --> 05:59.070
The one in first name we call.

06:00.450 --> 06:02.280
The punk scene could add.

06:04.860 --> 06:07.770
We have already had a.

06:09.810 --> 06:10.170
Right.

06:10.470 --> 06:11.270
We currently.

06:14.270 --> 06:14.990
We got.

06:16.500 --> 06:17.700
Another one, three.

06:21.490 --> 06:21.790
Is it?

06:21.820 --> 06:26.170
We can go compete so we can use these wearable.

06:28.350 --> 06:29.490
You say the function?

06:30.570 --> 06:33.570
You see it already used a.

06:35.400 --> 06:39.390
Here is a five theme theme.

06:42.410 --> 06:42.680
Okay.

06:44.810 --> 06:45.290
And.

06:47.260 --> 06:49.930
This is the global variable.

06:50.200 --> 06:50.650
Of course.

06:50.660 --> 06:51.880
Here I use a panel.

06:52.750 --> 06:53.380
Hello.

06:53.710 --> 06:54.160
You see.

06:54.490 --> 06:56.140
But we also can.

07:00.560 --> 07:01.610
That means here.

07:03.170 --> 07:04.400
You can also do this.

07:05.840 --> 07:07.220
For example, we talked.

07:08.390 --> 07:10.460
Rained a.

07:13.140 --> 07:14.490
Does he go to play?

07:15.420 --> 07:20.070
Yeah, because he is the global variable.

07:20.100 --> 07:26.010
So we can use music in the punk scene and we can also use it.

07:27.380 --> 07:35.270
You see after function all the side function you see we can't use print a not for this function.

07:38.460 --> 07:38.700
No.

07:38.700 --> 07:43.170
Let's see about how is the local variable.

07:46.100 --> 07:51.710
Look, however, is the variable that created each side of boxing.

07:54.910 --> 07:57.280
Since variable kind.

07:57.400 --> 07:59.080
You user only say the function.

08:05.040 --> 08:08.160
Let's see the thing focusing.

08:16.180 --> 08:17.770
For example, this one.

08:21.990 --> 08:23.010
It just took me.

08:26.110 --> 08:26.650
No.

08:26.650 --> 08:29.470
We pulled the swine.

08:32.530 --> 08:33.550
He signed.

08:34.870 --> 08:35.590
The function.

08:42.540 --> 08:43.140
Back at this.

08:45.320 --> 08:47.780
Maybe there still must be.

08:52.870 --> 08:54.220
Is six.

08:55.420 --> 08:58.780
The is a let it be like this.

08:59.230 --> 09:00.310
This means.

09:01.630 --> 09:05.020
A and B are local variables.

09:09.360 --> 09:15.540
These wearables can only be used in etc. function less right then you will understand.

09:16.650 --> 09:18.090
Maybe we could.

09:21.350 --> 09:24.800
In order to distinguish these flying planes, the Apollo.

09:25.820 --> 09:26.660
Records.

09:27.760 --> 09:28.090
Uh.

09:30.190 --> 09:30.670
And.

09:34.660 --> 09:37.840
They had a calculate kick just like this.

09:38.320 --> 09:39.280
You can use any.

09:41.070 --> 09:41.730
Less right.

09:46.360 --> 09:56.740
Then we test the core because here you see, we didn't write any argument parameters inside the purposes.

09:57.460 --> 09:58.490
So we just court.

09:59.390 --> 10:00.020
And.

10:01.910 --> 10:02.390
Thank.

10:03.990 --> 10:04.320
This.

10:06.390 --> 10:08.120
We go to the reserved 11.

10:08.580 --> 10:11.640
But how about we want a train a.

10:15.380 --> 10:16.310
All because of here.

10:16.520 --> 10:19.330
This is why even they rained here.

10:19.340 --> 10:23.930
We already named a list.

10:24.140 --> 10:27.230
Change a two.

10:28.930 --> 10:31.660
And you know.

10:34.300 --> 10:34.840
And.

10:38.260 --> 10:39.940
Thing, for example.

10:43.070 --> 10:43.580
You know.

10:47.490 --> 10:47.880
M.

10:51.790 --> 10:52.420
The pain.

10:54.310 --> 10:55.210
Blessed Ryan to be.

10:58.360 --> 10:58.840
No.

10:59.440 --> 11:01.300
We call and.

11:02.690 --> 11:05.750
Later, Fed care fell.

11:09.420 --> 11:11.430
You see, we got a levy.

11:11.830 --> 11:12.290
But how?

11:12.780 --> 11:13.770
We trained.

11:15.280 --> 11:15.730
The.

11:17.260 --> 11:17.670
L.

11:19.620 --> 11:20.420
Laissez faire.

11:20.430 --> 11:28.260
The error that says niemeyer is not defined because it belongs to the local variable.

11:30.510 --> 11:31.950
Of the function.

11:34.590 --> 11:35.850
Also complained.

11:36.980 --> 11:37.370
Am.

11:40.730 --> 11:45.560
Take the scene, Mr. Devine, because the local.

11:45.560 --> 11:47.330
Where was the function?

11:49.100 --> 11:49.400
Okay.

11:51.340 --> 11:52.480
Let's see what else?

11:52.920 --> 11:54.370
I think that's it.

11:55.770 --> 11:56.130
Yeah.

11:56.300 --> 11:56.610
Yes.

11:56.610 --> 11:58.830
Subject to the same.

12:00.320 --> 12:00.980
Steve.

12:02.030 --> 12:04.730
I say we pray to God.

12:07.110 --> 12:07.430
Ever.

12:07.890 --> 12:08.150
Okay.

12:09.620 --> 12:10.130
Thank you.

12:10.850 --> 12:12.380
This is the lecture.

12:13.100 --> 12:18.980
In the next lecture, we will learn in the Python class.

12:20.030 --> 12:20.450
Okay.

12:22.020 --> 12:22.530
Thank you.

12:22.710 --> 12:23.400
See you then.
