a list , which can be constructed by
placing expressions within square brackets separated by commas. Such an
expression is called a list literal.
If you want to change selection, open document below and click on "Move attachment"
2.2 Data Abstraction functions. What we need is some way to glue
together a numerator and a denominator into a compound value.
2.2.2 Pairs
To enable us to implement the concrete level of our data abstraction, Python
provides a compound structure called <span>a list , which can be constructed by
placing expressions within square brackets separated by commas. Such an
expression is called a list literal.
>>> [10, 20]
[10, 20]
The elements of a list can be accessed in two ways. The first way is via our
familiar method of multiple assignment, which unpacks a list into its Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details