If you want to parse a string to a float or int in Python? Python defines type conversion functions to directly convert one data type to another which is useful in day to day and competitive programming.
Use the following example code:
>>> a = "545.2222"
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.