Lists vs tuples (newbie)

Duncan Booth duncan.booth at invalid.invalid
Mon May 21 07:56:53 EDT 2007


Szabolcs <szhorvat at gmail.com> wrote:

> 
> I was wondering about why are there both tuples and lists? Is there 
> anything I can do with a tuple that I cannot do with a list?
> 
> In what circumstances is it advantageous to use tuples instead of lists?
> Is there a difference in performance?
> 
> I am still learning Python, so please be gentle ...
> 
Have you found the Python FAQ yet? It answers this exact question and many
others:

http://www.python.org/doc/faq/general/#why-are-there-separate-tuple-and-list-data-types



More information about the Python-list mailing list