Code to reverse a string | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code to reverse a string

Write the code

2nd Apr 2020, 6:11 PM
Amitesh Singh
Amitesh Singh - avatar
2 Answers
+ 3
x='hello' print(x[::-1])
2nd Apr 2020, 6:12 PM
Tricker
+ 1
Thank you
2nd Apr 2020, 6:13 PM
Amitesh Singh
Amitesh Singh - avatar