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 defined inside a function are local to that function and do not affect variables outside the function. Here, the variable a inside the function convert()is a local variable, and its value does not modify the global variable a. Therefore, the value of a printed outside the function remains 20.

The graph shows the variation of current with voltage for a p-n junction diode. Estimate the dynamic resistance of the diode at \( V = -0.6 \) V.
