It's down to how you write your
if
condition:
if rps == 'rock' or 'Rock' and computer == 'rock' :
'Rock' is a string on it's own and since it's not empty, it is treated as
True
You need to add the comparison explicitly:
if rps == 'rock' or rps=='Rock' and computer == 'rock' :
Or better:
if (rps == 'rock' or rps=='Rock') and computer == 'rock' :
To get it working - the brackets force a particular evaluation order on the conditions, so rps must be one or other of "rock" and "Rock" and the computer needs to be "rock" as well.
The language is different, but he made the same mistakes you have - so have a look at his question, and my response:
I was making a simple stone paper scissor game and the if else is not exexuting[
^] - the advice is the same as for you!