Code to reverse a string | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Code to reverse a string

Write the code

2nd Apr 2020, 6:11 PM
Amitesh Singh
Amitesh Singh - avatar
2 Réponses
+ 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