How would it be possible to get the value of Accessme in the mainloop function?
def example():
test=True
while test:
print("some stuff")
if test2==True:
Accessme = 400 # Need to access this
print("some stuff")
if test3==True:
print("some stuff")
mainloop(x,y)
elif test2==False:
print("some stuff")
def mainloop(x,y):
cheese = 1
noise = []
for something in somecodehere:
print("some stuff")
output = some more code here
print("some stuff",Accessme ) #Calling from here
This is the error i get:
> NameError: name 'Accessme' is not defined