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 Жыл бұрын
Your explanation of coding is truly ingenious. Suddenly, all those encrypted coding lines aren't that confusing anymore.
@MoonFrogg Жыл бұрын
these are VERY important things to learn, love the video and thanks for the clear + concise explanation!!
@porlando12 Жыл бұрын
Wow this was awesome. Your channel is criminally underrated!
@Ylus99Ай бұрын
Wow I cant believe I was stuck on this; you have a great method for explaining this concept clearly. Great video.
@avnilaad8582 ай бұрын
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 Жыл бұрын
Great stuff! Good to learn more about how Python "thinks" lol
@aliplayer1 Жыл бұрын
Love the videos. Concise yet full of information for new learners. Thanks.
@bab4953 Жыл бұрын
ur channel deserves more subs. Your content is amazing👍
@LilJollyJoker Жыл бұрын
Thank you for this video!
@BiyHappy Жыл бұрын
Thanks man what a smooth explanation
@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.
@FocusProj3 ай бұрын
Very applied learning! Thank you!
@SHAYANGUHA7 ай бұрын
really informative 😍😍😍😍😍
@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 Жыл бұрын
@epsi so the only way is basically to rename them or remove them
@SusanAmberBruce Жыл бұрын
Probably one of the most important videos to watch if someone is new to python
@nadiaezzarhouni300 Жыл бұрын
Bro you are insane, can you do a python course , by the way where do you get all this knowledge
@adammarley5616 Жыл бұрын
Beautifully taught!
@killerboyak Жыл бұрын
Amazing Explanation , Thank you.
@elancedin7204 Жыл бұрын
bro literally did a few vids and already 82k subs, gut 4 u
@naifal-ghamdi483 Жыл бұрын
Best scope explanation ever, many thanks to you
@JimFikesАй бұрын
Well done.
@harshaljani22665 ай бұрын
If there were 4 functions nested then would there be a way to access the 2nd function’s variable in the innermost 4th function?
@samsungcurved5 ай бұрын
Which theme you are using?
@yazanabdoush703010 ай бұрын
Can you share what color theme you are using?
@alanlado1602 Жыл бұрын
I like the way you explain things. Subscribe button smashed.
@mind_of_a_darkhorse Жыл бұрын
Great explanation of scope! You made it very easy to understand!
@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 Жыл бұрын
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
@sayanta018 ай бұрын
thanks man
@mossdem Жыл бұрын
Could you do a video which does a clear breakdown of classes?
@faisal99129 Жыл бұрын
very good explanation... very helpful
@KrAsHeDD Жыл бұрын
Thanks, you answered my awaited long question.
@OsirisRD Жыл бұрын
what is your theme vscode ?
@Nicky411 Жыл бұрын
Lovely video!
@rabi_saith4 ай бұрын
Thanks
@yaraa.a5237 Жыл бұрын
the music is fire it got me dancing. and it remind me of minecraft
@Joe_Brig Жыл бұрын
2:30 not obvious if you coming from a compiled language.
@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 Жыл бұрын
Thank you for this great explaination!
@soniablanche5672 Жыл бұрын
I knew of "global", but I didn't know about "nonlocal"
@xcc4010 Жыл бұрын
What is the name of the theme?
@arunalakmal903111 ай бұрын
Thnak you broo!!!
@vuIent Жыл бұрын
Good video
@udishe Жыл бұрын
Ty
@vvv3876 Жыл бұрын
I learned this on practice, i wish i viewed this video before
@ismahelo Жыл бұрын
What font is that? And what theme?
@amoghgc871211 ай бұрын
SynthWave '84
@charlesrussell6183 Жыл бұрын
great explanation
@karthiksundaram544 Жыл бұрын
Great stuff
@swaggitypigfig8413 Жыл бұрын
Can you do a video on 360 no scope in Python next?
@reynaparker29617 ай бұрын
5:26
@Hotwire_RCTrix10 ай бұрын
This language is conflicting coming from C++. We were taught that this kind of programming was for those ignorant BASIC programmers of the 70s. 😳