1/31/2022 6:01:27 AM
Python is case sensitive means you can say that 'Print' and 'print' are two different things, because of Capital letters.
So, Print() is not the right function, it's print() with small 'p'
Happy Learning 🙂
In print keyword you must use small alphabet p not capital letter..That is print(float(5.3))
print(float(5.3)) error bro
What is the error ?
I guess you are not using the error keyword in the quote.
You just have to write
var = float(input())
#if input is not a number then it raise error, otherwise fine.
The 'print' builtin is case sensitive. Also converting a type of float to float is uneeded since its already of that type unless being read from an input() type conversion is necessary.
print must be in small letter that's why your code give you error,
Send us a message