LogiQuest
Back to Functions
7

What is the output of the following code?

x = 10
def f():
    global x
    x = 5
f()
print(x)
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.