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