• Тhere was an unexpected problem!

Question related to mission Striped Words

 
count = 0
for s in range(len(list_text)):
    count += 1
    x = re.search(r'(^([BCDFGHJKLMNPQRSTVWXZ][AEIOUY][BCDFGHJKLMNPQRSTVWXZ]?)+$|
    ^([AEIOUY][BCDFGHJKLMNPQRSTVWXZ][AEIOUY]?)+$)', list_text[s])is not None

    if x == False:
        return 0

    elif x == True:
        return count

counter is not running. very confused on this nonsense.(