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])
In questa pagina del sito puoi guardare il video online Range Function In Python | Python Range Function With Example | Python Training della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Venus Tutorials 24 giugno 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto No volte e gli è piaciuto 0 spettatori. Buona visione!