How to Reverse a string using Python

preview_player
Показать описание
This video looks at ways to reverse a string using Python. At the end of the video it recommends the 'best' approach to reversing a string.
Рекомендации по теме
Комментарии
Автор

I don't know why people are not watching your tutorial but for me you are great sir . continue your efforts for the one who really wants to learn programming.thanks

rahulraj-egic
Автор

However, in Python a string can't actually be reversed, in-place, since strings are immutable. What this does is create a new reversed string, in a new memory buffer.

KeithDart
Автор

Thank you such a great explanation, learned me alot but i came from the site www.codeacademy.com and in one of the exercices they ask to use it without the [ : : -1] if you can add that solution it will help the future guys comming from there looking for solution ! thanks again !

anasallaoui