Sunday, 23 October 2016

Python Lists

Lists in Python:

1. Python lists are very useful. You see them everywhere.
2. They are flexible and can contain heterogeneous data.
3. They are indexed with c style indexing (First element starts with zero index).
4. They are used where order of the elements matter.
5. Slicing can be applied on lists to create sublists.
6. Appropriately used when data is of same type.
7. Denoted by [ ]


                                                                               -- Notes from classes of Michele Vallisneri

No comments:

Post a Comment