I have this simple Python 3 script
def myfunction(current):
current += 1
myvalue = 'Test Value'
print(current)
return current
current = 1
while ( current < 10 ):
current = myfunction(current)
It works great but I am trying to use the myvalue variable in the while loop. How can I get access to the variable?
myfunction, the others are inaccessible.