Identify the output of the following Python code : def EXP(N2): global N1 N1,…

PYQ KVS TGT/PGT 2023

Identify the output of the following Python code :

def EXP(N2):
    global N1
    N1, N2 = N1 + 5, N2 + 10
    print(N1, N2, end=' ')
N1=10
EXP(N1)
print(N1)
  1. A.

    10 20 15

  2. B.

    15 20 10

  3. C.

    15 20 15

  4. D.

    10 20 10

Attempted by 106 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…