def do_thing(): x = 1 # x seems to be equal to 1 return x + 1 def do_thing2(x): if x == 1: return True return False def do_thing3(): x = 1 return x + 1 def do_thing4(): x = 1 x = 85