Variables defined locally in one function have local scope and are not automatically accessible within another, disjunct function. You might want to consider passing stealth
to arena
when called from start
, e.g. arena(stealth)
, and then stealth
would be defined as a parameter of arena
, i.e.
def arena(stealth):