Help me in solving PSPP81 problem

My issue

problem with this question

My code


Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone

U have to to it like this

# Click on submit to see the result

x = 10  # Global variable

def my_function():
    x = 20  # Local variable with the same name as the global variable
    print(x)  # Accesses the local variable

my_function()  # Output: 20
print(x)  # Output: 10 (global variable is not affected)