Tuple is collection of heterogeneous objects enclosed with parenthesis ().
• a= () #empty tuple
• b=(10,) # Tuple with one element
• c= (‘ computer’, 84 , 9875.255) # tuple with multiple data items
• d= ( “ computer”,[100,200,300], ( 4,7,8) ) # nested tuple
• In someway a tuple is similar to a list in terms of indexing , nested objects
and repetition but a tuple is immutable unlike lists which are mutable
Visit more about Python in Tuple contact us