0

Float

Print(float(5.3)) error

31st Jan 2022, 6:01 AM
Bharathi R
Bharathi R - avatar
10 Answers
+ 3
Hi Bharathi, 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 🙂
31st Jan 2022, 7:21 AM
Abhiyantā
Abhiyantā - avatar
+ 2
x=float(input()) print(x) Error
31st Jan 2022, 6:26 AM
Bharathi R
Bharathi R - avatar
+ 2
In print keyword you must use small alphabet p not capital letter..That is print(float(5.3))
31st Jan 2022, 1:55 PM
Rajulapudi Aswini
Rajulapudi Aswini - avatar
+ 1
print(float(5.3)) error bro
31st Jan 2022, 6:11 AM
Bharathi R
Bharathi R - avatar
+ 1
What is the error ?
31st Jan 2022, 6:24 AM
NotHuman
NotHuman - avatar
+ 1
I guess you are not using the error keyword in the quote.
31st Jan 2022, 6:29 AM
NotHuman
NotHuman - avatar
+ 1
You just have to write var = float(input()) Print(var)
31st Jan 2022, 6:35 AM
NotHuman
NotHuman - avatar
+ 1
x=float(input()) print(x) #if input is not a number then it raise error, otherwise fine.
31st Jan 2022, 9:56 AM
Jayakrishna 🇼🇳
+ 1
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.
1st Feb 2022, 7:05 PM
Xander Tedder
0
print must be in small letter that's why your code give you error, Try this print(float(5.3))
1st Feb 2022, 8:54 PM
Chandan Maurya
Chandan Maurya - avatar