if element.isdigit(): newelement = int(element)
def isfloat(value): try: float(value) return True except ValueError: return False