xxxxxxxxxx
In Python 3.0
5 // 2 floor division will return 2.
5 / 2 floating point division will return 2.5
xxxxxxxxxx
# floor devision and modulo
def euclidean_division(x, y):
quotient = x // y
remainder = x % y
print(f"{quotient} remainder {remainder}")
euclidean_division(1, 7000)
#finds both in one function
xxxxxxxxxx
# Floor division(//) chops off all numbers after the decimal
# Input
10 / 3
10 // 3
# Output
3.33333333
3