level: the module, a function task, and a function step written inside task.
level = "top"
def task():
level = "mid"
def step():
global level
level = "low"
step()
return level
print(task(), level)
What does the program print?Log in to join the discussion.
Loading…