Advertisements
Advertisements
प्रश्न
Which of the following is the output of the following python code?
str1="TamilNadu"
print(str1[::-1])पर्याय
Tamilnadu
Tmlau
udanlimaT
udaNlimaT
MCQ
Advertisements
उत्तर
udanlimaT
Explaantion:
The slicing str1[::-1] reverses the string "TamilNadu" to "udanlimaT".
shaalaa.com
Concepts of Strings in Python
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
