Reverse string in Python | GeeksforGeeks

  Рет қаралды 123,610

GeeksforGeeks

GeeksforGeeks

Күн бұрын

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! :)

Пікірлер: 25
@sumitsaini2045
@sumitsaini2045 Жыл бұрын
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))
@anasc8674
@anasc8674 Жыл бұрын
When he did the for loop he made a range of the string that starts at the end of the string and goes back
@FundamSrijan
@FundamSrijan Жыл бұрын
I'm in class 11th and now I can finally understand what's going on 🙏🙏🙏
@Mani77302
@Mani77302 Ай бұрын
First learn English properly thn take the classes 🤦😑
@akira_asahi
@akira_asahi 2 жыл бұрын
Thank you for the video. I am gratuful for your time and contribution. Kind regards, Akira.
@rajansrivastav8201
@rajansrivastav8201 5 жыл бұрын
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
@angiedickerson6650
@angiedickerson6650 4 жыл бұрын
# Extended slice method to reverse a string inputStr = 'We will conquer COVID-19.' print(inputStr[-1 : : -1])
@gslvqz8812
@gslvqz8812 4 жыл бұрын
The program is correct. Please check your own code
@bhavesh_kumar96
@bhavesh_kumar96 2 жыл бұрын
@@gslvqz8812 yes code is correct
@bhavesh_kumar96
@bhavesh_kumar96 2 жыл бұрын
@@angiedickerson6650 nice this is very easy :-)
@Learn._.Editing
@Learn._.Editing Жыл бұрын
Bhai hindi me bataona
@tsewangstanzin9065
@tsewangstanzin9065 3 жыл бұрын
thank you very much i really needed this topic to learn ....
@gautampradeep564
@gautampradeep564 Жыл бұрын
Thank you sir
@music_for_you....
@music_for_you.... 2 жыл бұрын
Thank you soo much
@casual_chess
@casual_chess 6 жыл бұрын
Great work sir...please upload more python videos.
@maimunaaktertripty5212
@maimunaaktertripty5212 Жыл бұрын
why its important to take initial string???//
@arnavdas9781
@arnavdas9781 Жыл бұрын
AMAZING EXPLAINATION GODDAMN
@pratikagarwal1847
@pratikagarwal1847 Жыл бұрын
thank u sir
@zara4257
@zara4257 Жыл бұрын
excellent!
@h_aj_qo
@h_aj_qo 3 жыл бұрын
👍👍👍
@kranthimaddineni9709
@kranthimaddineni9709 5 жыл бұрын
If there is words example "man kranthi" and only kranthi should be reversed
@sksohel4807
@sksohel4807 4 жыл бұрын
inputStr='man kranthi' step=inputStr[-1:-8:-1] print(step)
@nazmulhasanoyon6424
@nazmulhasanoyon6424 4 жыл бұрын
Very easy video to learn the way to print string in reverse
@silkercarvalho602
@silkercarvalho602 3 жыл бұрын
what this your site man ???
@tooMuchTired
@tooMuchTired 3 жыл бұрын
yes
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 309 М.
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 22 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 11 МЛН
Reverse String in Python: Reverse String in Python using Slicing
7:49
Automate with Rakesh
Рет қаралды 1,6 М.
Python Program to Reverse a Number ( using String Method Tutorial )
5:20
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 807 М.
Python Tutorial - Reverse a String Using for loop
8:22
Amulya's Academy
Рет қаралды 171 М.
Bytes and encodings in Python
9:36
Python and Pandas with Reuven Lerner
Рет қаралды 102 М.
Python dataclasses will save you HOURS, also featuring attrs
8:50
threading vs multiprocessing in python
22:31
Dave's Space
Рет қаралды 582 М.
String methods in Python are easy 〰️
12:06
Bro Code
Рет қаралды 104 М.
OYUNCAK MİKROFON İLE TRAFİK LAMBASINI DEĞİŞTİRDİ 😱
00:17
Melih Taşçı
Рет қаралды 12 МЛН