array and list

Paddy paddy3118 at googlemail.com
Fri Jan 18 03:06:41 EST 2008


On Jan 18, 3:23 am, "J. Peng" <peng.... at gmail.com> wrote:
> what's the difference between an array and a list in python?
> I see list has all features of array in C or perl.
> so please tell me.thanks.

If you are new to Python, then where other languages may reach for an
'array', Python programs might organise data as lists. Lists are used
much more than arrays in Python. you should find that is the case in
tutorials/books too.

P.S. if you know Perl then try: http://wiki.python.org/moin/PerlPhrasebook?highlight=%28perl%29


- Paddy.



More information about the Python-list mailing list