+ 1
Guys is this reverse function will be applicable to string?
4 Réponses
+ 10
Sunil Chettri Why tho? The function can reverse a list.
+ 11
You'll have to convert the string in a list first, like -
list("String")
and then you can call the function~
print(reverse(list("String"))))
+ 2
you could do
a = a[::-1]
+ 1
Then we have to convert list into tuple?Is it so @Nikhil