>>> first = int(input()) 5 # I give an input that can be turned to an integer. >>> first = int(input()) rock # Here the 'rock' word can't be turned to an integer of course so I get an error. Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid literal for int() with base 10: 'rock'If you want to map an integer to a word you can use a dictionary.
first = lower(input("rock paper scissors?: ")) # converting the input to lower case letters so you can used it as a key in the dict bellow second = lower(input("rock paper scissors?: ")) r_p_s = {'rock': 5, 'paper': 10, 'scissors': 15} while r_p_s['rock']: etc.