python float() error code example
Example: float error python
#Make sure that you have used a float instead of an integer.
print("Type a decimal number here:")
Number = float(input())
print(Number)
#The above code asks the user to input a decimal then spits out the exact same decimal.