Python Quotient & Remainder

preview_player
Показать описание
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)
Рекомендации по теме