The Syntax for Slicing a string is:
string_name[start_index : End_Index : Step]
Characters at Start Index is always included and at the end index if excluded. Step gives instructions on how to Increment.
In Negative Indexing, the last letter/character has an index of -1. Remember that in Python the negative index of the last character is always -1 and not -0
#python #pythontutorials #india #leanrpython #installpython #pythonforbeginners #learningpython #jayeshbhaware #kingdomofmask #slicing #stringslicing #indexing
Nesta página do site você pode assistir ao vídeo on-line Python Tutorials #7 For Beginners (Slicing up A String, Negative Indexing in Python) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Jayesh Bhaware 07 Março 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 164 vezes e gostou 7 espectadores. Boa visualização!