Which of the following print statements will display output as RAMA in Python?

2026

Which of the following print statements will display output as RAMA in Python?

Answer: A. print("AMARDEEP"[3::-1])

  1. A.

    print("AMARDEEP"[3::-1])

  2. B.

    print("AMARDEEP"[4::-1])

  3. C.

    print("AMARDEEP"[2::-1])

  4. D.

    print("AMARDEEP"[3:-1])

Attempted by 236 students.

Show answer & explanation

Correct answer: A

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…