Python Integer Division Result
Multiple Choice Easy
Question
What is the value of `7 // 2` in Python?
Hint
The // operator performs floor (integer) division.
Explanation
// is floor division — it divides and rounds down to the nearest integer. 7 / 2 = 3.5, so 7 // 2 = 3. Use / if you want the float result 3.5.
Related Resources
Related Lessons
- Python Variables
Arithmetic operators in Python.
Related Cheatsheets
- Python Cheatsheet
Operator reference.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.