#python #scip
The operator specifies a function. When this call expression is evaluated,
we say that the function max is called with arguments 7.5 and 9.5, and
returns a value of 9.5.
The order of the arguments in a call expression matters. For instance, the
function pow raises its first argument to the power of its second argument.
If you want to change selection, open document below and click on "Move attachment"
1.2 Elements of Programminghe same as in conventional mathematics.
>>> max(7.5, 9.5)
9.5
This call expression has subexpressions: the operator is an expression that
precedes parentheses, which enclose a comma-delimited list of operand
expressions.
<span>The operator specifies a function. When this call expression is evaluated,
we say that the function max is called with arguments 7.5 and 9.5, and
returns a value of 9.5.
The order of the arguments in a call expression matters. For instance, the
function pow raises its first argument to the power of its second argument.
>>> pow(100, 2)
10000
>>> pow(2, 100)
1267650600228229401496703205376
Function notation has three principal advantages over the mathematical
convention of infix Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details