a = 20
def convert(a):
b = 20
a = a + b
convert(10)
print(a)
Select the correct output from the given options:
10
20
30
Error
In Python, variables declared within a function are scope-bound to that function and do not influence variables external to it. Consequently, the variable 'a' within the 'convert()' function is local; its modification does not alter the global 'a'. Thus, the output of 'a' outside the function retains its initial value of 20.