Python Fundamentals: Understanding Scope and Name Resolution
Learn the essential LEGB rule to understand how Python resolves variable and function names, preventing confusing naming conflicts and scope errors.
-
💬
AIインストラクター
どのレッスンでも質問すれば、いつでもすぐに分かりやすい答えが返ってきます。 -
🕐
いつでも開始
スケジュールも締め切りもなし。自分のペースで、好きなときに学べます。 -
🌐
日本語で
レッスン、課題、修了証まで、すべてあなたの言語で。
このコースについて
Python relies on a strict set of rules to determine where to find names (variables, functions, classes). Failing to understand these rules is a primary source of confusing bugs for new developers.
This course demystifies Python's name resolution process. You will gain a clear, mental model of the Local, Enclosing, Global, and Built-in (LEGB) scopes, allowing you to write cleaner, more predictable code and debug issues quickly.
What you'll learn:
* Understand the core concept of variable scope and name binding in Python.
* Master the LEGB rule for determining the precise order of name lookup.
* Analyze the unique role of Python's built-in scope (containing names like print and len).
* Practice identifying and resolving common scope-related bugs, including variable shadowing.
* Apply the use of global and nonlocal keywords to modify names outside the local scope.
* Learn how modern Python features like list comprehensions and lambda functions interact with scope.
The course begins by defining fundamental terminology around names and objects, then systematically breaks down each layer of the LEGB rule with practical, written exercises. We conclude with techniques for debugging and avoiding complex scope issues in large programs.
This course is designed for absolute beginners to Python programming. No prior knowledge of programming concepts or scope is required.
Start building a robust foundation for reliable Python development today.
得られるもの
-
📜
修了証
LinkedInプロフィールに追加 -
💬
パーソナルAIチューター
レッスンで詰まった?組み込みチューターにいつでも何でも聞いてみよう。 -
♾️
無期限アクセス
いつでも再開可能、有効期限なし -
📱
スマホでもPCでも
どこでもどんな端末でも -
💸
14日返金保証
理由を聞きません -
⚡
短く要点だけ
3時間の実践的な内容
レビュー
まだレビューはありません — 最初の体験を共有しましょう。
よくある質問
このコースを受けるには何が必要ですか? +
インターネットに接続したスマホかパソコンだけ。インストールも特別な機材も不要です。
支払い方法は? +
Stripe経由のカードで。カード情報は当社では保存せず、Stripeが安全に取り扱います。
返金できますか? +
はい — 14日以内なら理由を問わず全額返金。
いつまでアクセスできますか? +
ずっと。購入後はあなたのもの。いつでも見返せます。
修了証はもらえますか? +
はい。修了するとLinkedInプロフィールに追加できる修了証を受け取れます。
こんな分野の方に
テック
デザイン
金融
マーケティング
医療
教育
ホスピタリティ
製造業