def afin(day,month,text):
for i in range(len(text)):
ascii = text[i] - 96
y = (day * ascii) + month;
while(y > 26):
y -= 26
sifrelenmiş_harf = y + 96
sifrelimesaj += sifrelenmiş_harf
text = input("Enter Text:")
day = input("Birth Day:")
month = input("Birth Month:")
print(afin(day,month,text))
Hey, However, whenever I run this script, it comes up with this error:
ascii = text[i] - 96
TypeError: unsupported operand type(s) for -: 'str' and 'int'
How do i fix the mistake?