python中验证给出的列表中带双引号的数字是否正确

假设python给出一个列表x = ['123456789','987654321','13669732221']
如果是正确的,则要满足:如果以12开头,第三个数字需要4或者5,或者6;如果以13开头,则第三个数学需要7或者6
才能是正确的


x = ['123456789', '987654321', '13669732221']

for i in x:
    if i[:2] == '12' and (i[2] == 4 or 5 or 6):
        print('正确')
    elif i[:2] == '13' and (i[2] == 7 or 6):
        print('正确')
    else:
        print('错误')

img