Concept
Integer Division (//)
Double slash `//` is floor division. It divides and mercilessly chops off whatever comes after the decimal point:
python
print(7 // 2) # Prints: 3 (the 0.5 is deleted!)
# 16. Integer Division (//) Double slash `//` is floor division. It divides and mercilessly chops off whatever comes after the decimal point: ```python print(7 // 2) # Prints: 3 (the 0.5 is deleted!) ``` It doesn't round up. It just decapitates the decimal and hands you a clean integer.
Checkpoint
What does `11 // 3` give you?
Practice
You have 100 cookies to split among 3 people. Use `//` to find out how many whole cookies each person gets.
01
Tap code blocks below to assemble
Available Blocks