lists or tuples

Discussion in 'Python' started by mr_vocab, May 24, 2004.

  1. mr_vocab

    mr_vocab Guest

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

    thanks
     
    mr_vocab, May 24, 2004
    #1
    1. Advertising

  2. mr_vocab

    Ben Finney Guest

    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/>
     
    Ben Finney, May 25, 2004
    #2
    1. Advertising

  3. On 2004-05-24, mr_vocab <> wrote:

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


    See the recent thread on "terminology obscurity" or somesuch.

    --
    Grant Edwards grante Yow! I demand IMPUNITY!
    at
    visi.com
     
    Grant Edwards, May 25, 2004
    #3
  4. mr_vocab

    mr_vocab Guest

    great thanks
    "mr_vocab" <> wrote in message
    news:40b2e203$...
    > hey what is the many dif with them why bothere using tuples and how do you
    > edit a list???
    >
    > thanks
    >
    >
     
    mr_vocab, May 28, 2004
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Daniel Nogradi
    Replies:
    3
    Views:
    359
    Dennis Lee Bieber
    Nov 10, 2006
  2. Replies:
    5
    Views:
    572
    Thomas J. Gritzan
    Oct 6, 2006
  3. tuples within tuples

    , Oct 26, 2007, in forum: Python
    Replies:
    12
    Views:
    601
    Dennis Lee Bieber
    Oct 27, 2007
  4. xera121
    Replies:
    8
    Views:
    750
    lolmc
    Sep 30, 2009
  5. Jon Reyes
    Replies:
    18
    Views:
    259
    Mitya Sirenef
    Feb 19, 2013
Loading...

Share This Page