Reverse string in Python | GeeksforGeeks
HTML-код
- Опубликовано: 12 сен 2024
- Find Complete Code at GeeksforGeeks Article: www.geeksforge...
This video is contributed by Shashank Mishra
Please Like, Comment and Share the Video among your friends.
Install our Android App:
play.google.co...
Follow us on Facebook:
/ gfgvideos
And Twitter:
/ gfgvideos
Also, Subscribe if you haven't already! :)
Thank you for the video. I am gratuful for your time and contribution. Kind regards, Akira.
I'm in class 11th and now I can finally understand what's going on 🙏🙏🙏
thank you very much i really needed this topic to learn ....
Great work sir...please upload more python videos.
AMAZING EXPLAINATION GODDAMN
Thank you soo much
when we take user input, the program is showing an error named as "Name Error : name is not defined".
please upload the correct program.
thank you
# Extended slice method to reverse a string
inputStr = 'We will conquer COVID-19.'
print(inputStr[-1 : : -1])
The program is correct. Please check your own code
@@gslvqz8812 yes code is correct
@@angiedickerson6650 nice this is very easy :-)
Thank you sir
not good plz explain this code
def reverse(str):
string = " "
for i in str:
string = i + string
return string
str = "racecar"
print("The original string is:",str)
print("The reverse string is:", reverse(str))
When he did the for loop he made a range of the string that starts at the end of the string and goes back
why its important to take initial string???//
Very easy video to learn the way to print string in reverse
excellent!
thank u sir
what this your site man ???
yes
👍👍👍
Bhai hindi me bataona
If there is words example "man kranthi"
and only kranthi should be reversed
inputStr='man kranthi'
step=inputStr[-1:-8:-1]
print(step)
First learn English properly thn take the classes 🤦😑