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

KVS TGT/PGT 2026NVS 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 208 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…