I've tried searching for possible ways to set limits for the input(). It takes only absolute numbers, and I'd like to add a range for example 0-100. Could you do it from the input() function itself or a if would be required? If out of range, I don't want any output, just a error. Thanks in advance
price_flour_kilo = abs(float(input()))
kilos_flour = abs(float(input()))
kilos_sugar = abs(float(input()))
packs_eggs = abs(float(input()))
packs_yeast = abs(float(input()))
price_sugar_kilo = price_flour_kilo * 0.75
price_pack_eggs = price_flour_kilo * 1.1
price_yeast_pack = price_sugar_kilo * 0.2
total_flour = price_flour_kilo * kilos_flour
total_sugar = price_sugar_kilo * kilos_sugar
total_eggs = price_pack_eggs * packs_eggs
total_yeast = price_yeast_pack * packs_yeast
result = total_eggs + total_flour + total_sugar + total_yeast
print(round(result, 2))