if-statement

For loop appending wrong Value

Hey guys I’m missing something here I want to append ‘a’ to my answers if the two values match and ‘b’
if they don’t but it always appends ‘b’
so the number before the word should be equal to the length of the word
import re

def is_a_val…