#---------------------------------------------------------- # Name: Alex Sanita # Purpose: Checking Input Validity # # Author: Alex Sanita # # Created: 26/2/2025 # Copyright: (c) alex 2025 # Licence: dont need a licence #----------------------------------------------------- # checking for name validation will only accep names w 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 interger input validation while True: try: rounds = int(input("how many rounds do you want to play?")) if rounds < 1 or rounds > 5: print("please choose a number between 1 and 5") else: break except: print ("you didnt even put in a number how am i supposed to process that you bro?")