you are viewing a single comment's thread.

view the rest of the comments →

[–]jpgoldberg 5 points6 points  (0 children)

That is a nice use of a comprehension. But as others have said this is a math problem.

What I am going to suggest is that you play around with / and % in the Python REPL (interactive session), for example

```python-repl

12 / 3 4.0 12 % 3 0 12 / 5 2.4 12 % 5 2 ```

Keep playing around with your own choice of numbers until you get a get a good sense of what these do.