In Python, how can I parse a numeric string like "323.235"
to its corresponding float value, 323.235
, or parse the string "67"
to an integer, 67
.
I just want to know how to parse a float str
to a float
, and (separately) an integer str
to an int
.