I want to have a function (def smallest_value(number):) that returns numbers like this:
smallest_value(0) >> 1
smallest_value(1) >> 0.1
smallest_value(2) >> 0.01
smallest_value(3) >> 0.001
smallest_value(4) >> 0.0001
>Solution :
Try this one:
def smallest_value(number: int) -> float:
return 10**(-number)