Floor Division in Python
Level 114 keystrokes
This prints 17 // 3, which is 5. The // operator divides and rounds down to the nearest integer.
Python code
# // is floor division: it divides and rounds the result down to an integer# 17 ÷ 3 is 5.666..., which rounds down to 51print(17 // 3)Output
5
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this Python code and how often they appear.
/× 2(× 1)× 1