Slicing Strings in Python - Python Tutorial - w3Schools - Ch#10 English

Published: 18 July 2022
on channel: w3Schools Tutorials
449
2

Slicing - 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.

Slice From the Start
By leaving out the start index, the range will start at the first character.

Slice To the End
By leaving out the end index, the range will go to the end.

Negative Indexing
Use negative indexes to start the slice from the end of the string.


On this page of the site you can watch the video online Slicing Strings in Python - Python Tutorial - w3Schools - Ch#10 English with a duration of hours minute second in good quality, which was uploaded by the user w3Schools Tutorials 18 July 2022, share the link with friends and acquaintances, this video has already been watched 449 times on youtube and it was liked by 2 viewers. Enjoy your viewing!