November 2025
Beginner to intermediate
256 pages
5h 58m
English
The following are the answers to the practice questions, along with brief explanations and solutions to the practice projects. The programs created for the practice projects don’t have to exactly match the code given here, as long as they generate the same or similar output.
Answers to the Practice Questions
1. /
2. *
3. -
4. %
5. +
6. **
7. //
8. No. The whitespace in between values and operators is insignificant, so these two expressions are effectively the same.
9. 3, because the // operator is the “floor” division operator, which does division and then rounds down.
10. 2, because the % operator is the modulo operator, which evaluates to the remainder of a division operation.
11. 1 + 2 + 3 + 4 + 5 + 6 + ...
Read now
Unlock full access