Python program asks for input twice, doesn't return value the first time
Question: Here is my code, in the `get_response()` function, if you enter 'y' or 'n', it
says invalid the first time but then works the second time.  
How do I fix this?

    
    
    import random
    
    MIN = 1
    MAX = 6
    
    def main():
    
        userValue = 0
        compValue = 0
    
        again = get_response()
    
        while again == 'y':
            userRoll, compRoll = rollDice()
            userValue += userRoll
            compValue += compRoll
            if userValue > 21:
                print("User's points: ", userValue)
                print("Computer's points: ", compValue)
                print("Computer wins")
            else:
                print('Points: ', userValue, sep='')
            again = get_response()
    
        if again == 'n':
            print("User's points: ", userValue)
            print("Computer's points: ", compValue)
            if userValue > compValue:
                print('User wins')
            elif userValue == compValue:
                print('Tie Game!')
            else:
                print('Computer wins')
    
    
    def rollDice():
    
        userRoll = random.randint(MIN, MAX)
        compRoll = random.randint(MIN, MAX)
        return userRoll, compRoll
    
    def get_response():
    
        answer = input('Do you want to roll? ')
    
        if answer != 'y' or answer != 'n':
            print("Invalid response. Please enter 'y' or 'n'.")
            answer = input('Do you want to roll? ')
    
    main()
    


Answer: `answer != 'y' or answer != 'n':` is always true; `or` should be `and`.

