chosenNumber = input ("Choose A Number: ")
if chosenNumber.isdigit():
chosenNumber = int(chosenNumber)
else:
while chosenNumber.isalpha():
if chosenNumber == chosenNumber.isdigit():
chosenNumber = int(chosenNumber)
break
input ("Please Choose A Number: ")
I tried to make it so if the input is not a number it will keep asking him to choose a number but the while loop just keeps going is there a fix for that?