float error python 1

float error python

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

Here is what the above code is Doing:
1. The first line is a comment.
2. The second line is a print statement.
3. The third line is a variable.
4. The fourth line is a print statement.

Similar Posts