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])
На этой странице сайта вы можете посмотреть видео онлайн Range Function In Python | Python Range Function With Example | Python Training длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Venus Tutorials 24 Июнь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели No раз и оно понравилось 0 зрителям. Приятного просмотра!