how can input data type be change from string to float? (please tell the answer , from python chapter )
Answers
Answered by
3
You can use the float function to convert any data type into a floating-point number. This method only accepts one parameter. If you do not pāss any argument, then the method returns 0.0. If the input string contains an argument outside the range of floating-point value, OverflowError will be generated.
Similar questions