How to Parse a String to int or float in Python | CodeTrail