How to write a Python function that take one String argument and return following three type of output types depending on input value
def parseValue(v):
...
For example:
"123.45" -> parseValue("123.45") -> 123.45 (float)
"12345" -> parseValue("12345") -> 12345 (int)
"-23" -> parseValue("-23") -> -23 (int)
"Florida" -> parseValue("Florida") -> Florida (String and kept the input unchanged)
"0.12" -> parseValue("0.12") -> 0.12 (float)
"0010" -> parseValue("0010") -> "0010" keep it as string since this could be a code that require leading zeros