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])
- A.
print("AMARDEEP"[3::-1])
- B.
print("AMARDEEP"[4::-1])
- C.
print("AMARDEEP"[2::-1])
- D.
print("AMARDEEP"[3:-1])
Attempted by 236 students.
Show answer & explanation
Correct answer: A
Loading lesson…