how to use values from python functions in global code example
Example 1: how to make variable global in python
global variable
variable = 'whatever'
Example 2: 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}")