What is Scope in Python??

  Рет қаралды 58,364

b001

b001

Күн бұрын

Пікірлер: 60
@AntonioZL
@AntonioZL Жыл бұрын
2:34 while this is indeed obvious for anyone experienced with interpreted languages, it could be confusing for begginers coming from compiled languages, like C, which is quite commonly used in intro to programming classes, so it's worth to point it out.
@chsh9993
@chsh9993 Жыл бұрын
Your explanation of coding is truly ingenious. Suddenly, all those encrypted coding lines aren't that confusing anymore.
@MoonFrogg
@MoonFrogg Жыл бұрын
these are VERY important things to learn, love the video and thanks for the clear + concise explanation!!
@porlando12
@porlando12 Жыл бұрын
Wow this was awesome. Your channel is criminally underrated!
@Ylus99
@Ylus99 Ай бұрын
Wow I cant believe I was stuck on this; you have a great method for explaining this concept clearly. Great video.
@avnilaad858
@avnilaad858 2 ай бұрын
Thank you so much. I have learned so clearly from this explanation of yours. I have my computer science exam tomorrow. I am truly grateful for this. Thank you.
@曾忠凱
@曾忠凱 Жыл бұрын
Man your video really helps. I couldn't understand the explanation on the official doc. Tyvm!
@NickWrightDataYT
@NickWrightDataYT Жыл бұрын
Great stuff! Good to learn more about how Python "thinks" lol
@aliplayer1
@aliplayer1 Жыл бұрын
Love the videos. Concise yet full of information for new learners. Thanks.
@bab4953
@bab4953 Жыл бұрын
ur channel deserves more subs. Your content is amazing👍
@LilJollyJoker
@LilJollyJoker Жыл бұрын
Thank you for this video!
@BiyHappy
@BiyHappy Жыл бұрын
Thanks man what a smooth explanation
@birzhanabdikhan8175
@birzhanabdikhan8175 Жыл бұрын
1:37 by first-indentation he means that variable was defined outside of classes and functions. This part confused me too because I though that he meant 1st line.
@FocusProj
@FocusProj 3 ай бұрын
Very applied learning! Thank you!
@SHAYANGUHA
@SHAYANGUHA 7 ай бұрын
really informative 😍😍😍😍😍
@montagetm
@montagetm Жыл бұрын
What if you want to reference a local variable two scopes out, how would you do that? Nonlocal only references the previous scope and global only references the global scope.
@montagetm
@montagetm Жыл бұрын
@epsi so the only way is basically to rename them or remove them
@SusanAmberBruce
@SusanAmberBruce Жыл бұрын
Probably one of the most important videos to watch if someone is new to python
@nadiaezzarhouni300
@nadiaezzarhouni300 Жыл бұрын
Bro you are insane, can you do a python course , by the way where do you get all this knowledge
@adammarley5616
@adammarley5616 Жыл бұрын
Beautifully taught!
@killerboyak
@killerboyak Жыл бұрын
Amazing Explanation , Thank you.
@elancedin7204
@elancedin7204 Жыл бұрын
bro literally did a few vids and already 82k subs, gut 4 u
@naifal-ghamdi483
@naifal-ghamdi483 Жыл бұрын
Best scope explanation ever, many thanks to you
@JimFikes
@JimFikes Ай бұрын
Well done.
@harshaljani2266
@harshaljani2266 5 ай бұрын
If there were 4 functions nested then would there be a way to access the 2nd function’s variable in the innermost 4th function?
@samsungcurved
@samsungcurved 5 ай бұрын
Which theme you are using?
@yazanabdoush7030
@yazanabdoush7030 10 ай бұрын
Can you share what color theme you are using?
@alanlado1602
@alanlado1602 Жыл бұрын
I like the way you explain things. Subscribe button smashed.
@mind_of_a_darkhorse
@mind_of_a_darkhorse Жыл бұрын
Great explanation of scope! You made it very easy to understand!
@eric_d
@eric_d Жыл бұрын
I didn't participate in the poll, but from very recent experience I knew it would be an error as soon as I looked at it. A couple weeks ago I was working on a script where I wanted to redefine a global variable, but I didn't use global inside the function. What's even weirder is I tried doing it with 2 different variables, and only the second one gave an error. The first variable was redefined, and printed what I was expecting, but then I got the error when trying to print the second variable. This may be a bug in Python 3.10 that I need to further explore.
@tobiasm161
@tobiasm161 Жыл бұрын
Great explanation with examples ! Bravo I would love to see kind a approach about OOP. Because sometimes there is an overkill to use it. But otherwise its good practice i think. What do you think or whats your approach. I tend to do less OOP cause often "one time" use of my scripts
@sayanta01
@sayanta01 8 ай бұрын
thanks man
@mossdem
@mossdem Жыл бұрын
Could you do a video which does a clear breakdown of classes?
@faisal99129
@faisal99129 Жыл бұрын
very good explanation... very helpful
@KrAsHeDD
@KrAsHeDD Жыл бұрын
Thanks, you answered my awaited long question.
@OsirisRD
@OsirisRD Жыл бұрын
what is your theme vscode ?
@Nicky411
@Nicky411 Жыл бұрын
Lovely video!
@rabi_saith
@rabi_saith 4 ай бұрын
Thanks
@yaraa.a5237
@yaraa.a5237 Жыл бұрын
the music is fire it got me dancing. and it remind me of minecraft
@Joe_Brig
@Joe_Brig Жыл бұрын
2:30 not obvious if you coming from a compiled language.
@saadqayyum4739
@saadqayyum4739 Жыл бұрын
i though python was interpreded so it reads code line by line, shouldn't it print x and then make a local variable x instead of giving error
@sungodfatih
@sungodfatih Жыл бұрын
Thank you for this great explaination!
@soniablanche5672
@soniablanche5672 Жыл бұрын
I knew of "global", but I didn't know about "nonlocal"
@xcc4010
@xcc4010 Жыл бұрын
What is the name of the theme?
@arunalakmal9031
@arunalakmal9031 11 ай бұрын
Thnak you broo!!!
@vuIent
@vuIent Жыл бұрын
Good video
@udishe
@udishe Жыл бұрын
Ty
@vvv3876
@vvv3876 Жыл бұрын
I learned this on practice, i wish i viewed this video before
@ismahelo
@ismahelo Жыл бұрын
What font is that? And what theme?
@amoghgc8712
@amoghgc8712 11 ай бұрын
SynthWave '84
@charlesrussell6183
@charlesrussell6183 Жыл бұрын
great explanation
@karthiksundaram544
@karthiksundaram544 Жыл бұрын
Great stuff
@swaggitypigfig8413
@swaggitypigfig8413 Жыл бұрын
Can you do a video on 360 no scope in Python next?
@reynaparker2961
@reynaparker2961 7 ай бұрын
5:26
@Hotwire_RCTrix
@Hotwire_RCTrix 10 ай бұрын
This language is conflicting coming from C++. We were taught that this kind of programming was for those ignorant BASIC programmers of the 70s. 😳
@magdalenacoman9120
@magdalenacoman9120 10 ай бұрын
bru put the music louder pls
@TMinusRecords
@TMinusRecords Жыл бұрын
9:17 This whole thing is a disgusting mess
@Maker0824
@Maker0824 Жыл бұрын
Too basic for me
@pppluronwrj
@pppluronwrj Жыл бұрын
Js scope is better
Python Yield Keyword??
3:18
b001
Рет қаралды 138 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
THIS is Why List Comprehension is SO Efficient!
5:25
b001
Рет қаралды 176 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 710 М.
What is Python scope resolution? 🔬
5:34
Bro Code
Рет қаралды 36 М.
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 270 М.
*Args and **Kwargs in Python
3:49
b001
Рет қаралды 298 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 486 М.
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,5 МЛН
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 825 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН