how to modify global variable python code example
Example: how to global variables in python
def Takenin():
global ans
ans = "This is the coorect way to do it"
def Return():
Takenin()
print(f"ans :{ans}")
def Takenin():
global ans
ans = "This is the coorect way to do it"
def Return():
Takenin()
print(f"ans :{ans}")