I want a function that will round the number to 10 if it is less than 10, round to 100 if it is between 10 to 1000 and so on.
this will help number concatenation problems, so I don't have to turn number to str and back.
def roundup(n):
if n < 0: return 0
if n < 10: return 10
if n < 100: return 100
if n < 1000: return 1000
if n < 10000: return 10000
I want to know if there is a natural way to do this without just stacking 'if's together