check if can convert to float python

29

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

Comments

Submit
0 Comments