check if can convert to float python code example
Example: check if can convert to float python
try:
float(element)
except ValueError:
print "Not a float"
try:
float(element)
except ValueError:
print "Not a float"