+ 2
How to reverse a string in python?
How can i do it using compressions...
10 Answers
+ 6
https://code.sololearn.com/cCGVrnaCnv1X/?ref=app
+ 5
What do you mean using compressions?
+ 4
How about this?
https://code.sololearn.com/cRcROgw5KSGu/?ref=app
+ 3
print ("Hello World"[::-1])
+ 2
Lambda_Driver thanks,that's what i was looking for.
+ 2
Astralis You were looking for list slicing, not "compressions".
+ 2
Hey it's so easy u can use slicing
+ 2
Amit singh S=X[::-1]
0
x="amit"
S=x[::-1]