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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
