the tuple data type is almost identical to the list data typeexcept in two ways firsttuples are typed with parenthesesand )instead of square bracketsand for exampleenter the following into the interactive shelleggs ('hello' eggs[ 'helloeggs[ : ( len(eggs but the main way that tuples are different from lists is that tupleslike stringsare immutable tuples cannot have their values modifiedappendedor removed enter the following into the interactive shelland look at the typeerror error messageeggs ('hello' eggs[ traceback (most recent call last)file ""line in eggs[ typeerror'tupleobject does not support item assignment if you have only one value in your tupleyou can indicate this by placing trailing comma after the value inside the parentheses otherwisepython will think you've just typed value inside regular parentheses the comma is what lets python know this is tuple value (unlike some other programming languagesit' fine to have trailing comma after the last item in list or tuple in python enter the following type(function calls into the interactive shell to see the distinctiontype(('hello',)type(('hello')you can use tuples to convey to anyone reading your code that you don' intend for that sequence of values to change if you need an ordered sequence of values that never changesuse tuple second benefit of using tuples instead of lists is thatbecause they are immutable and their contents don' changepython can implement some optimizations that make code using tuples slightly faster than code using lists