python check if variable can be converted to float 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"