Question 1 of 6
Predict the three:
7 / 2,
7 // 2, and
7 % 2.
Every / result printed with a decimal point; floor and modulo describe the split.
True division always yields a float, so 7 / 2 is 3.5; floor division hands back the equal shares, 3; modulo hands back the leftover, 1. Together the last two describe any split.
Review this lesson