Consider the following Python code. A, B = 10, 5 def FUN(B = 10): global A A…
PYQ EMRS TGT/PGT (ESSE) 2025
Consider the following Python code.
A, B = 10, 5
def FUN(B = 10):
global A
A -= 5
B += 5
print(A, B, end=' ')
FUN(A)
FUN()
print(B)
Which of the following is the correct output of this program?
- A.
5 10 0 10 5
- B.
5 15 0 10 5
- C.
5 10 0 15 5
- D.
5 15 0 15 5
Attempted by 298 students.
Sign up free to check your answer
Sign up freeLoading lesson…

