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.

A ladder of fixed length \( h \) is to be placed along the wall such that it is free to move along the height of the wall.
Based upon the above information, answer the following questions:
(iii) (b) If the foot of the ladder, whose length is 5 m, is being pulled towards the wall such that the rate of decrease of distance \( y \) is \( 2 \, \text{m/s} \), then at what rate is the height on the wall \( x \) increasing when the foot of the ladder is 3 m away from the wall?