Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def round_sum(*values):
- result = 0
- for value in values:
- multiple, rest = divmod(value, 10)
- if rest:
- multiple += 1
- result += (multiple * 10)
- return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement