So I have the code:
intex = input("Enter in a letter of text\n")
if intex == 'a' or 'b' or 'c' or 'd' or 'e' or 'f' or 'g' or 'h' or 'j' or 'k' or 'l' or 'm' or 'n' or 'o' or 'p' or 'q' or 'r':
counter += intex
print(counter)
By the way, all the letters are defined, I just didn't think it was neccessary to put them in,(a = 1, b= 2, etc.) but whenever I run the code, it gives me the error TypeError: unsupported operand type(s) for +=: 'int' and 'str'
I know what this error means, that i cant add a letter to a number, but is there a way to do this without the error? i tried float(), but that gave me another error! please help!