Range of Indexes
You can specify a range of indexes by specifying where to start and where to end the range.
When specifying a range, the return value will be a new tuple with the specified items.
Example
Return the third, fourth, and fifth item:
thistuple = ("apple", "banana", "cherry", "orange", "kiwi", "melon", "mango")
print(thistuple[2:5])
Sur cette page du site, vous pouvez voir la vidéo en ligne Range Function In Python | Python Range Function With Example | Python Training durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Venus Tutorials 24 juin 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée No fois et il a aimé 0 téléspectateurs. Bon visionnage!