check if a string is float python

38

try:
    float(element)
except ValueError:
    print "Not a float"

Comments

Submit
0 Comments