Self-check only. Your answers stay in your browser — nothing is submitted or graded. Pick an answer for each question, then press Check my answers to see the answer key and explanations.
1. What is the difference between an integer and a float?
2. What does `7 / 2` give, and why is it a float?
3. What do `//` and `%` compute? Give the results for `9 // 2` and `9 % 2`.
4. Why does `2 + 3 * 4` give `14` and not `20`?
5. Why does `"5" + "3"` give `53` while `5 + 3` gives `8`?
← Back to Lesson 5 · Enroll free in the full course