convert 50p to 0.50 float python code example Example: parse int python value1 = "10" value2 = 10.2 print(int(value1)) print(int(value2))