+ 1
Why there is no build in method for reverse String??
12 Answers
+ 12
s[::-1]
# Look my code "Spam"
+ 10
in question you talk about string, no list
+ 10
and?
+ 10
#function
def revers(s):
return s[::-1]
+ 10
If you can, like my codes.
+ 10
Thanks.
+ 9
I have understood. As I know not build function for reverse string.
+ 9
https://docs.python.org/3/
Read documentations.
+ 9
Thank you for like my answers
You can like my codes too :)
+ 2
thanks for your help but i want build in function,like python provide reversed function for list but not for string..
+ 2
yes...
+ 2
is python support build in(predefine function) for reverse of string..? This is my question..