What is the output of the following code ?
def foo(): x = 89 print(x) x += 21 foo()
At line x += 21, "x" is not defined but we are trying to add 21 to it.Please check here, the function callfoo() is after the line x += 21 , which encounters error and breaks the program
x += 21
foo()
Comment here: