Text from a form starts as a string, even when it contains digits. int converts integer text, float accepts decimals, and str can turn a number back into text.
count = int("12") price = float("1.50") print(count * price) # 18.0