You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def my_fun():#local scope means when we create the value of a variable inside the function.
x=10
print(x)
my_fun()
def sum_fun():
x=3
y=7
print(x+y)
sum_fun()
x=10#global scope means after assingning the value of a variable outside the function it cann't be change by using the variable global.and it we want to make changes to that variable we can change it.