Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:11,370 --> 00:00:18,180
Everyone and welcome in this new edition in this video, we are going to talk about local viable and
2
00:00:18,180 --> 00:00:23,220
global viable, a global revival is.
3
00:00:25,520 --> 00:00:33,590
Well, the variable that we have seen before, so a global variable is just the variable set in the
4
00:00:33,590 --> 00:00:34,340
Python sheet.
5
00:00:34,850 --> 00:00:45,080
And you can have access to this variable all the time and at all the.
6
00:01:01,940 --> 00:01:03,110
Location in the.
7
00:01:05,120 --> 00:01:15,350
But a local variable is the variable that you can only have access in a function.
8
00:01:15,530 --> 00:01:24,140
For example, if I define a function so my function, I don't put any necessary inputs.
9
00:01:24,800 --> 00:01:34,850
I create a local variable named lunch, and I print the global variable to show you that the global
10
00:01:34,910 --> 00:01:38,690
variable can be called in a function.
11
00:01:39,740 --> 00:01:40,070
So.
12
00:01:42,070 --> 00:01:43,060
For example, if.
13
00:01:46,050 --> 00:01:59,040
I called my function the global variable is print, but if I want to print, look now we cannot do it
14
00:01:59,340 --> 00:02:06,210
because luck is a variable inside a function.
15
00:02:07,950 --> 00:02:17,880
So it's very important to understand the difference that global variable can be called at any location
16
00:02:17,880 --> 00:02:18,900
in the patent sheet.
17
00:02:19,500 --> 00:02:31,230
But the local variable are local to the function, so a local variable can be called only in its function.
18
00:02:32,340 --> 00:02:40,950
So it's very important to understand to don't have any issues with you following project.
1800
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.