Back to Browse

Python Tutorial for Beginners p.22: The different Scopes - Global, Nonlocal & Local

14 views
Mar 6, 2026
19:20

In this series, we will go over my notes for Python. And in this video, we are going to cover the different scopes that are available. Namely, we will cover the global, nonlocal and local scope. We will see how they relate to each other and how the referencing and assigning behavior work. Links: GitHub Repo: https://github.com/SebastianMantey/Python-Tutorial Full Playlist: https://www.youtube.com/playlist?list=PLPOTBrypY74yHNvmKlf9bfYuwMlbiPk94 Timestamps: 0:00 - Intro 0:07 - The three different scopes 0:32 - Global scope 1:23 - Local scope 2:08 - Nonlocal scope 3:09 - A variable only belongs to one scope at a time 4:44 - A reason for having different scopes 5:48 - Built-in scope 6:54 - Referencing behavior 15:50 - Assigning behavior

Download

0 formats

No download links available.

Python Tutorial for Beginners p.22: The different Scopes - Global, Nonlocal & Local | NatokHD