Which of the following Python print statements will result in error?…

PYQ KVS TGT/PGT 2026

Which of the following Python print statements will result in error?

L=[10,50,20,40,30]
  1. A.

    print(L[1:]+L[:1])

  2. B.

    print(L[-1]+L[::-1])

  3. C.

    print(L[1::2]+L[::2])

  4. D.

    print(L[1]+L[-1])

Attempted by 185 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…