Python string slice tutorial example explained
#python #slice() #slicing
slicing = create a substring by extracting elements from another string
indexing[] or slice()
[start:stop:step]
name = "Bro Code"
first_name = name[:3] # [0:3]
last_name = name[4:] # [4:end]
funky_name = name[::2] # [0:end:2]
reversed_name = name[::-1] # [0:end:-1]
print(reversed_name)
website1 = "http://google.com"
website2 = "http://wikipedia.com"
slice = slice(7,-4)
print(website1[slice])
print(website2[slice])
––––––––––––––––––––––––––––––
Up In My Jam (All Of A Sudden) by - Kubbi / kubbi
Creative Commons — Attribution-ShareAlike 3.0 Unported— CC BY-SA 3.0
Free Download / Stream: http://bit.ly/2JnDfCE
Music promoted by Audio Library • Up In My Jam (All Of A Sudden) – Kubbi (No...
––––––––––––––––––––––––––––––
Nesta página do site você pode assistir ao vídeo on-line Python string slicing ✂️ duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Bro Code 21 Dezembro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 76,132 vezes e gostou 3.7 mil espectadores. Boa visualização!