filmov
tv
Python - Access Tuple Items || Python Tutorial

Показать описание
Access Tuple Items
You can access tuple items by referring to the index number, inside square brackets:
Negative Indexing
Negative indexing means start from the end.
-1 refers to the last item, -2 refers to the second last item etc.
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.
Check if Item Exists
To determine if a specified item is present in a tuple use the in keyword:
📚 RESOURCES:
Django for backend dev
RESOURCES:
If you like the video please share and subscribe.*********************Follow me**********************
Thanks for supporting keep watching!!!!!
Thanks for watching!!!!!!!!!!
You can access tuple items by referring to the index number, inside square brackets:
Negative Indexing
Negative indexing means start from the end.
-1 refers to the last item, -2 refers to the second last item etc.
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.
Check if Item Exists
To determine if a specified item is present in a tuple use the in keyword:
📚 RESOURCES:
Django for backend dev
RESOURCES:
If you like the video please share and subscribe.*********************Follow me**********************
Thanks for supporting keep watching!!!!!
Thanks for watching!!!!!!!!!!