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.



Question
The floor division operator, [...] , expresses integer division, which rounds down the fractional part of the result of division.
Answer
//

Question
The floor division operator, [...] , expresses integer division, which rounds down the fractional part of the result of division.
Answer
?

Question
The floor division operator, [...] , expresses integer division, which rounds down the fractional part of the result of division.
Answer
//
If you want to change selection, open original toplevel document below and click on "Move attachment"

Parent (intermediate) annotation

Open it
The floor division operator, // , expresses integer division, which rounds down the fractional part of the result of division.

Original toplevel document

2.2 Data Abstraction
ms before constructing the pair. As with many useful tools, such a function already exists in the Python Library. >>> from fractions import gcd >>> def rational(n, d): g = gcd(n, d) return (n//g, d//g) <span>The floor division operator, // , expresses integer division, which rounds down the fractional part of the result of division. Since we know that g divides both n and d evenly, integer division is exact in this case. This revised rational implementation ensures that rationals are expressed in lowest te

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.