Functions within functions, closures, and variable scopes in Python
Functions within functions explained!
― mCoding with James Murphy ()
Source code:
SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!
Feeling generous but don’t have a Patreon? Donate via PayPal! (No sign up needed.)
Want to donate crypto? Check out the rest of my supported donations on my website!
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, Neel R, Matt R, Johan A, Casey G, John Martin, Mutual Information
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
Discord:
Github:
Reddit:
Facebook:
CHAPTERS
---------------------------------------------------
0:00 Intro
0:18 Motivating example
2:54 The One Rule
3:13 Level 1, return global
3:38 Level 2, conditional local
4:50 Level 3, nonlocal z
6:48 Level 4, cells and closures
10:35 Level 5, functions are objects, distinct closures
11:39 Level 6, donky chonky
12:52 Lambdas and comprehensions
14:32 Nonlocal and global
16:27 Level 7, please dont do this
18:18 Thanks
3 views
12
1
4 weeks ago 00:12:15 1
Best Meme Coins That Could Skyrocket – The NEXT Big Opportunities!
2 months ago 00:02:39 1
Definition of Management
2 months ago 01:50:23 1
Neuroscientist Reveals Your Brain is Just “Guessing” & Doesn’t Know Anything | Lisa Feldman Barrett
2 months ago 00:04:38 1
Montana Ranch For Sale - Trapper’s Cabin
2 months ago 00:08:21 1
Top 100+ Wooden Furniture Inspiration: Top Wooden Decor Ideas for 2024
2 months ago 00:23:21 1
Snug Fit Magic: 4-Stroke Engine Install on a Switz Cruz | BikeBerry
2 months ago 00:01:33 1
【1791 | Von Kempelen’s Speaking Machine】 Replica Made and Played by Alexander Steinbeißer
2 months ago 00:04:46 1
Mars 360: NASA’s Mars Curiosity Rover - Sol 3923 (360video 8K)
2 months ago 00:09:05 1
MAKE $350 PER DAY USING THESE AI TOOLS (Make Money Online 2025)
3 months ago 00:01:00 1
Hz Schumann Resonance : Activate the Healing Power Within 432 Hz #shorts