python test if a string can be converted to an int code example
Example: check if a string is float python
try:
float(element)
except ValueError:
print "Not a float"
try:
float(element)
except ValueError:
print "Not a float"