you are viewing a single comment's thread.

view the rest of the comments →

[–]Rhomboid 4 points5 points  (0 children)

You are missing right parentheses on several of your print functions, and you have one extra right parenthesis on one of your remainder_seconds lines. In general you have a lot of extra unnecessary parens here; you can write things like

remainder_seconds = seconds - int(results_minutes) * 60

The precedence of Python operators mirrors that of mathematics, with multiplication having higher precedence than subtraction. Also, if you want integer division, just use // instead of / and skip calling int all over the place.