Python interview question #6: Global vs. local variables

preview_player
Показать описание
Python scoping -- which variable exists, and is available, at each point in time -- seems clear and obvious. But for many, it's incredibly confusing. If you're going to be interviewed for a Python job, then they might ask you to explain scoping... so, can you?

In this video, I explain the difference between local and global variables, as well as "builtins," and how they interact. You'll also learn what the "global" declaration does in a Python function.

Рекомендации по теме
Комментарии
Автор

🤔 Variable scoping in Python can be surprisingly tough to understand. I hope you get it a bit better now.

👇 Still have questions? Drop them in the comments — I read them all.

📝 Want the course notebooks and practice materials?

ReuvenLerner
visit shbcf.ru