Tuple In Python
Tuple In Python
Creating Tuples
Deleting Tuples
Accessing Elements in Tuple
Tuples Operations: Concatenation, Repetation, Membership, Iteration.
Built in Tuples functions and methods.
Example to create tuple with single element (with and without paranthesis).
Example to create tuple with multiple element (with and without paranthesis).
o
o Negative Indexing
TUPLE OPERATIONS
Tuple Concatenation:
Tuple Repetation
Example to create Repetition of Touples.
Tuple Iteration.
o We can iterate the tuple using for loop .
index() method :
This method returns the first occurance of specified value. If value found, then it returns its index
position, and if not found, then it raised an exception.
Syntax: tuple1.index( value )