Python Programming Tutorial - Negative Index in List

Publicado el: 29 junio 2024
en el canal de: Venus Tutorials
2
0

Range of Negative Indexes
Specify negative indexes if you want to start the search from the end of the tuple:

Example
This example returns the items from index -4 (included) to index -1 (excluded)

thistuple = ("apple", "banana", "cherry", "orange", "kiwi", "melon", "mango")
print(thistuple[-4:-1])


En esta página del sitio puede ver el video en línea Python Programming Tutorial - Negative Index in List de Duración hora minuto segunda en buena calidad , que subió el usuario Venus Tutorials 29 junio 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2 veces y le gustó 0 a los espectadores. Disfruta viendo!