Which of the following slicing examples will display content of string TXT in…
PYQ KVS TGT/PGT 2026
Which of the following slicing examples will display content of string TXT in reversed order in Python?
- A.
print(TXT[::-1])
- B.
print(TXT[:-1])
- C.
print(TXT[-1])
- D.
print(TXT[:0:-1])
Attempted by 765 students.
Sign up free to check your answer
Sign up freeLoading lesson…

