#python #scip
Pure functions. Functions have some input (their arguments) and return some
output (the result of applying them).
If you want to change selection, open document below and click on "Move attachment"
1.2 Elements of Programmingcan say that
numerals (and expressions) themselves evaluate to values in the context of
Python programs.
1.2.6 The Non-Pure Print Function
Video:
Show
Hide Throughout this text, we will distinguish between two types of functions.
<span>Pure functions. Functions have some input (their arguments) and return some
output (the result of applying them). The built-in function
>>> abs(-2)
2
can be depicted as a small machine that takes input and produces output.
The function abs is pure. Pure functions have the p Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details