tubeshowcase●1,151,788 videos♡ My collection 0
← Learn to Code

Learn to Code05:16

Local and Global Variable Lookup Weirdness in Python

mCoding ↗

From the creator

Variable lookup rules in Python are weird! Did you know that a statement in a function can be affected by a LATER assignment? This is a subtle rule of variable lookup in Python. ― mCoding with James Murphy (https://mcoding.io) Source code: https://github.com/mCodingLLC/VideosSampleCode Python docs: https://docs.python.org/3/reference/executionmodel.html SUPPORT ME ⭐ --------------------------------------------------- Patreon: https://patreon.com/mCoding Paypal: https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE Other donations: https://mcoding.io/donate BE ACTIVE IN MY COMMUNITY 😄 --------------------------------------------------- Discord: https://discord.gg/Ye9yJtZQuN Github: https://github.com/mCodingLLC/ Reddit: https://www.reddit.com/r/mCoding/ Facebook: https://www.facebook.com/james.mcoding

Published 2021-04-24 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code