filmov
tv
Python Quotient & Remainder
![preview_player](https://i.ytimg.com/vi/WtTYIP2UKIs/maxresdefault.jpg)
Показать описание
Quotient
Floor division is done using two forward slashes and is used to determine the quotient of a division (the quantity produced by the division of two numbers).
For example:print( 20 // 6 )
____________________________________________
Remainder
The modulo operator is carried out with a percent symbol (%) and is used to get the remainder of a division.
print(20 % 6)
print(1.25 % 0.5)
Floor division is done using two forward slashes and is used to determine the quotient of a division (the quantity produced by the division of two numbers).
For example:print( 20 // 6 )
____________________________________________
Remainder
The modulo operator is carried out with a percent symbol (%) and is used to get the remainder of a division.
print(20 % 6)
print(1.25 % 0.5)