how to make it so if an int is not entered, the programs asks for an int again?
from random import randint

def CheckGuess(UserGuess, ComputerGuess):
    if UserGuess == ComputerGuess:
        global TotalPoints
        TotalPoints += 5
        return True
    else:
        return False

def GenerateGuess():
    return (randint(1, 10))

TotalPoints = 0

def main():
    print("Let's play the number Guessing Game")
    ComputerGuess = GenerateGuess()
    print(ComputerGuess)
    UserGuess = int(input("Enter a number 1-10: "))
    while True:
        if CheckGuess(UserGuess, ComputerGuess):
            print("Congrats! You win! Your score has increased to: ", TotalPoints)
            Repeat = input("Play again? (yes/no) ")
            if Repeat == 'yes':
                main()
            elif Repeat == 'Yes':
                main()
            else:
                input("Thank you for playing!")
                quit()
        else:
            print("Sorry! Try again? Score = ", TotalPoints)
            Repeat = input("Play again? (yes/no) ")
            if Repeat == 'yes':
                main()
            elif Repeat == 'Yes':
                main()
            else:
                input("Thank you for playing!")
                quit()
                     
main() Provide your reponse without using the word guessing.
user