#python #scip
we can establish new bindings using the assignment statement, which
contains a name to the left of = and a value to the right:
If you want to change selection, open document below and click on "Move attachment"
1.2 Elements of Programminghe Environment
Video:
Show
Hide A critical aspect of a programming language is the means it provides for using
names to refer to computational objects. If a value has been given a name, we
say that the name binds to the value.
In Python, <span>we can establish new bindings using the assignment statement, which
contains a name to the left of = and a value to the right:
>>> radius = 10
>>> radius
10
>>> 2 * radius
20
Names are also bound via import statements.
>>> from math import pi
>>> pi * 71 / Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details