[] vs. ()

Jason Stokes jstok at bluedog.apana.org.au
Tue Mar 14 09:17:49 EST 2000


Michal Bozon wrote in message ...
>__Hi__
>Could anyone tell me the difference between tuples and lists? (except from
>that a list has few methods (append, extend, remove...) and tuple
>doesn't.)


Well, that's the difference.  In an object oriented language, objects differ
by their interfaces.  Tuples are fixed size ordered collections of objects,
and lists are variable sized ordered collections.





More information about the Python-list mailing list