def x(input):
tmp=input * 5
return str(tmp)
hey, hidden state! def x(input):
tmp=input * 5
return str(tmp)
hey, hidden state! x input = show tmp
where tmp = input * 5
It would be a different story if you had something like class IntState:
def __init__(self, val):
self.val = val
def x(input):
self.val += input
return str(val)