Creating a list:

Since lists can contain any Python variable, it can even contain other lists. For example, we could represent the products in the shelves of a small grocery shop, and we could then use an indexing method (starting with 0 as usual in Python) to extract any sub-list in various ways. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download