#---------------------------------------------------------------- # Name: Input Validation # Purpose: Checking Input Validity # # Author: Tyron # # Created: 28/02/25 # Copyright: (C) Tyron Vassilatos 2025 #----------------------------------------------------------------- # Checking for name validation. Will only accept names with no numbers or spaces. 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") #Checking for integer input validation while True: 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 print("You didn't even put in a number how am I supposed to process that you bro?")