lists or tuples

Ben Finney bignose-hates-spam at and-benfinney-does-too.id.au
Tue May 25 02:51:06 EDT 2004


On Tue, 25 May 2004 07:51:37 +1000, mr_vocab wrote:
> hey what is the many dif with them why bothere using tuples and how do
> you edit a list???

You just answered your own question.

Tuples are immutable.  Lists are mutable.  That's one of the primary
reasons to have these two separate sequence types.

Learn more about sequence types in Python:

    <http://www.python.org/doc/current/tut/node7.html>

or, better, work through the whole tutorial to learn a lot about Python:

    <http://www.python.org/doc/current/tut/>

-- 
 \      "I went to a garage sale. 'How much for the garage?' 'It's not |
  `\                                     for sale.'"  -- Steven Wright |
_o__)                                                                  |
Ben Finney <http://bignose.squidly.org/>



More information about the Python-list mailing list