lists or tuples

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mr_vocab

    lists or tuples

    hey what is the many dif with them why bothere using tuples and how do you
    edit a list???

    thanks


  • Ben Finney

    #2
    Re: lists or tuples

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

    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/>

    Comment

    • Grant Edwards

      #3
      Re: lists or tuples

      On 2004-05-24, mr_vocab <amireallyfat@y ahoo.com.au> wrote:
      [color=blue]
      > hey what is the many dif with them why bothere using tuples and how do you
      > edit a list???[/color]

      See the recent thread on "terminolog y obscurity" or somesuch.

      --
      Grant Edwards grante Yow! I demand IMPUNITY!
      at
      visi.com

      Comment

      • mr_vocab

        #4
        Re: lists or tuples

        great thanks
        "mr_vocab" <amireallyfat@y ahoo.com.au> wrote in message
        news:40b2e203$1 _1@news.iprimus .com.au...[color=blue]
        > hey what is the many dif with them why bothere using tuples and how do you
        > edit a list???
        >
        > thanks
        >
        >[/color]


        Comment

        Working...