Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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.
 
PREVIOUS NEXT
Tagged: #float #error #python
ADD COMMENT
Topic
Name
3+7 =