Quote:
I'm not sure how to fix this while loop to give "invalid entry" for when the input is not 8 or 9 but proceeed normally or break when the valid answer is given
You need to make your mind and choose, input is string or number, not both.
x = ""
while True:
game_type = int(input("Enter game type, either 8-ball or 9-ball with a single number (aka = 8 or 9): "))
if game_type != "8" and game_type != "9":
print(x)
print("Invalid game type, please enter 8 or 9")
print(x)
elif game_type == 8 or game_type == 9:
break
print("the game type is",game_type)