Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
What is Python scope resolution? ๐Ÿ”ฌ
Play lesson

Python tutorial for beginners ๐Ÿ - What is Python scope resolution? ๐Ÿ”ฌ

4.0 (0)
8 learners

What you'll learn

This course includes

  • 14.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

#python #tutorial #course # ----- LOCAL ----- def func1(): x = 1 #local print(x) def func2(): x = 2 #local print(x) func1() func2() # ----- ENCLOSED ----- def func1(): x = 1 #enclosed def func2(): print(x) func2() func1() # ----- GLOBAL ----- def func1(): print(x) def func2(): print(x) x = 3 #global func1() func2() # ----- BUILT-IN ----- from math import e def func1(): print(e) func1()

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere