String Slices in Python

preview_player
Показать описание
Introduction to Python
String Slices in Python

You can return a range of characters by using the slice syntax. Specify the start index and the end index, separated by a colon, to return a part of the string.

-by Yatin Jog
Рекомендации по теме
Комментарии
Автор

what if [1:6:2]?..understood the reverse slicing.

swetha.r
Автор

Thank you so much. Your explanation was so good and well taught. Thank you again.

maureenidialu
Автор

If i want to make reverse only first 3....eg):need YHPTHON from string python... How to fo?

cnivasan
Автор

I was trying to understand it for 1 hour. You explained it so well, took me just 2min to understand. Thank you.

jecobreza