+ 2

How do you make an input turn into a float on python

Trying to solve the BMI calculator on python for beginners

23rd Feb 2021, 9:50 PM
Jaydee
Jaydee - avatar
4 Answers
+ 3
Just do this: float(input())
23rd Feb 2021, 9:53 PM
Pieter Edwards
Pieter Edwards - avatar
+ 1
Thanks ✹
23rd Feb 2021, 9:54 PM
Jaydee
Jaydee - avatar
0
Also please,I have written d code but it's giving me a wrong sample input
23rd Feb 2021, 9:57 PM
Jaydee
Jaydee - avatar
0
What do you mean by wrong sample input?
23rd Feb 2021, 9:57 PM
Pieter Edwards
Pieter Edwards - avatar