From: Learn By on 29 Jul 2010 22:13 http://learnbyexamples.org 10.1. Nested data structures Composed data structures, such as lists, dictionaries and tuples can be nested in Python. This means that you can use these data structures as elements of themselves. >>> l = [1, [2, 3, [4]], [5, 6]] The list above contains 3 elements. >>> len(l) 3 http://learnbyexamples.org/python/python-tutorial/python-tutorial-10-nested-data-structures.html
|
Pages: 1 Prev: plot colour Next: How to use properly the function PDEPE to hyperbolic equation |