while True: name = str(input("What is your name? ")) if name.isalpha() == True: break else: print("That is not an acceptable name please try again") while True: try: rounds = int(input("How many rounds do you want to play? 1-5")) if rounds < 1 or rounds > 5: print("Please choose a number between 1 and 5") else: break except: print("You didn't even put in a number how am I supposed to process that to you?")