#python #scip
Assignment is our simplest means of abstraction, for it allows us
to use simple names to refer to the results of compound operations
If you want to change selection, open document below and click on "Move attachment"
1.2 Elements of Programmingt;> 2 * radius
20
Names are also bound via import statements.
>>> from math import pi
>>> pi * 71 / 223
1.0002380197528042
The = symbol is called the assignment operator in Python (and many other
languages). <span>Assignment is our simplest means of abstraction, for it allows us
to use simple names to refer to the results of compound operations, such as the
area computed above. In this way, complex programs are constructed by
building, step by step, computational objects of increasing complexity.
The possibility of binding Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details