SyntaxFix
Write A Post
Hire A Developer
Questions
You can use math.ceil() to round up, and then multiply by 10
math.ceil()
import math def roundup(x): return int(math.ceil(x / 10.0)) * 10
To use just do
>>roundup(45) 50