How to use .find in python

last_letter = 'AZYXUTSRPMLKJHGEDCB'
plate_num = str(input('Enter your vehicle plate number starting with S: '))
plate_num =plate_num.replace('B','2')
plate_num =plate_num.replace('A','1')

total = int(plate_num[1]) * 9 + int(plate_num[2]) * 4 + int(plate_num[3]) * 5 + int(plate_num[4]) * 4 + int(plate_num[5]) * 3 + int(plate_num[6]) * 2
remainder =  total % 19

last_alp = last_letter.find(remainder)

this is mine code but at this find area there will be an error msg that pops up .

find is used to look for a substring. I’m not sure what you’re trying to do but remainder is an integer. Are you trying to access last_letter[remainder]?