Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Tags
#python #scip
Question
Non-pure functions. In addition to returning a value, applying a non-pure function can generate [...], which make some change to the state of the interpreter or computer.
Answer
side effects

Tags
#python #scip
Question
Non-pure functions. In addition to returning a value, applying a non-pure function can generate [...], which make some change to the state of the interpreter or computer.
Answer
?

Tags
#python #scip
Question
Non-pure functions. In addition to returning a value, applying a non-pure function can generate [...], which make some change to the state of the interpreter or computer.
Answer
side effects
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
Non-pure functions. In addition to returning a value, applying a non-pure function can generate side effects, which make some change to the state of the interpreter or computer. A common side effect is to generate additional output beyond the return value, using the print function.</spa

Original toplevel document

1.2 Elements of Programming
s output. The function abs is pure. Pure functions have the property that applying them has no effects beyond returning a value. Moreover, a pure function must always return the same value when called twice with the same arguments. <span>Non-pure functions. In addition to returning a value, applying a non-pure function can generate side effects, which make some change to the state of the interpreter or computer. A common side effect is to generate additional output beyond the return value, using the print function. >>> print(1, 2, 3) 1 2 3 While print and abs may appear to be similar in these examples, they work in fundamentally different ways. The value that print returns is

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.