Using isdigit for floats? July 28, 2023 by Tarik EAFP try: x = float(a) except ValueError: print("You must enter a number")