Skip to main content

Program to demonstrate the Scope of Variables

· One min read
Kaustubh Kulkarni

Que > Program to demonstrate the Scope of Variables

file.py
a="Global"
def fun(a):
print(a)
print(a)
fun("Local")
Output
Global
Local