I have a problem with string, I am aware that using isdigit()
we can find whether an integer in the string is an int or not but how to find when its float in the string. I have also used isinstance()
though it didn't work. Any other alternative for finding a value in the string is float or not??
My code:
v = '23.90'
isinstance(v, float)
which gives:
False
Excepted output:
True