Select the correct output of the given Python code from the following options:…

PYQ KVS TGT/PGT 2023

Select the correct output of the given Python code from the following options:
S='INDIAN'
L=S.Partition('N')
NS=L[0]+'-'+L[1]+'-'+L[2]
print (NS)

  1. A.

    I-N-DIA-N-

  2. B.

    I-DIA-

  3. C.

    I-DIAN

  4. D.

    I-N-DIAN

Attempted by 1410 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…