Python - Indexing & Slicing of Tuple

preview_player
Показать описание
Python - Indexing & Slicing of Tuple
Watch More Videos at:
Lecture By: Mr. Malhar Lathkar, Tutorials Point India Private Limited
Рекомендации по теме
Комментарии
Автор

Suppose I want to apply negative slicing in a tuple how does that work?
For eg: x =(12, 67, 9, 0, (12, 14), "this", " is", "a", 12.6)
x[-1:-2]
O/p: ()

How can I access the other elements of a tuple through negative index slicing??

indraneelmukherjee