def find(): x = 0 while True: exec(f'a = {x}') exec(f'b = {x}') if a is not b: print('STOP ITERATION') print(f'Answer: {x}') break x += 1 find()
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "./prog.py", line 12, in <module> File "./prog.py", line 6, in find NameError: name 'a' is not defined