check if can convert to float python

37

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

Comments

Submit
0 Comments