Example:
test = int(input("Enter a number"))
test2 = test * 24
print(test2)
when i enter a float number like 0.10 i get this error:
ValueError: invalid literal for int() with base 10: '0.10'
test = int(float(input("Enter a number"))) makes 0.10 to 0
I want the output like this:
>>> 2.4
How do i fix?
intat all, you want afloat. Just dotest = float(input("Enter a number")).float(input("Enter a number"))