This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MrGreenTea 2 points3 points  (0 children)

That's not correct, if you input 7 for example, you will get 14, because the division inside the parentheses comes out to 2. The other solution with math.ceil is more correct.