Exercise: Relationship Floor Division and Modulo
This exercise is about the relationship between floor division and the modulo (remainder) operator. Take a look at the formula for the result variable. The result should have the same value as a. Try to understand why and correctly calculate the floor_division and the remainder using the correct operators.
a = 11
b = 4
floor_division =
remainder =
# result should have the same value as a
result = floor_division * b + remainder
print(result)
Python
Setting up Python environment...
Output