Junior — Senior
What output will the program produce when calling the function foo
livecode
Task condition
What will be printed on the screen after executing foo()?
def foo():
a = 1
def bar():
a += 2
print(a)
bar()
foo()