+ 3
What is the name of the function for flipping strings in python?
The name of the function that does this: Input = "string" Output = "gnirts"
18 odpowiedzi
+ 12
Most of the possible solutions have been mentioned here, So this part is solved.
But we should accept questions like this. There is no reason to say that this is a too simple question, because this depends on the knowledge and the experience of the person who is asking for help.
+ 7
Technically, a palindrome isn't a function for flipping strings, it's a string that reads the same forwards and backwards, e.g. "radar".
+ 6
Actually you can't use the str.reverse() method on strings because they are immutable, but you can use the reversed() function like this:
print("".join(reversed("abc")))
+ 4
Whatever you decide to call it because there is none.
*remember syntax:
<string>[[start:]stop[:step]]
+ 4
Kabir Isyaka don't hate on Santosh though, this question has been asked many times. He's just trying to keep q&a clean. In the future, try using the search function to look for a question that may have already been asked. (90% of questions)
+ 3
Pallindrom
plz don't ask this simple question that you can get from Google any confusion related questions ask here
Kabir Isyaka ok
+ 3
when in the "Discuss" tab, tap on the magnifying glass on the upper part of the screen.
Then type in keywords for your question
after you search, you can filter the results to show you the most popular to get the thread with the most answers/likes
wich will more than likely have your answer
+ 2
Såñtösh i thought this was a platform for question and answer discussions?
+ 2
You get a list of all available string methods by printing: dir(str)
+ 1
yes, especially look at the "step" part and see what you can do
+ 1
Slick thanks for the help.
+ 1
You can append all chars in a list and then reverse and join chars together. 😁
0
Slick using list slicing right?
0
Slick thank you.
0
Slick how do i use the "search function" ?
0
Quiero aprender sobre patrones de diseño. Algunos tips que me ayuden a empezar?
0
Ignor this comment it is to find this convo latter for myself (comments I make are recorded and I can see the convos)