Post

Sergei Kotov
Sergei Kotov@kotov_dev·
@Python_Dv C. 7 The function add_n(4, 3) uses arguments 4 and 3, not global variables a and b. Parameters a=4 and b=3 are used, returning 4 + 3 = 7. Key point: Function parameters override global variables with the same name.
English
0
0
0
223
Arun Kumar Singh
Arun Kumar Singh@arunkinsights·
@Python_Dv Function add_n(a, b) returns the sum of a + b. Inside the function call, add_n(4, 3) → here a = 4 and b = 3. So, it will return 4 + 3 = 7. The a = 5 and b = 5 written outside the function are not used, since the function uses its own parameters. Correct Answer: C. 7
English
0
0
0
149
Paylaş