Build a Pin Extractor - Step 19

I don’t know what to do, i’m on the step 19 and the console is still saying " The function should return secret_codes at the end."
i tried everything, I tried the code on Google Collab and realized that I would have to specify a poems variable with the list of poems for it to work.
For Google Collab, print(pin_extractor([poem, poem2, poem3])) is also an error.
It should be written without square brackets. However, following the instructions in the exercise, I continue to get this error saying that I should return secret_codes. When I did that, and I think with the correct indentation too.

poem = """Stars and the moon
shine in the sky
white and
until the end of the night"""

poem2 = 'The grass is green\nhere and there\nhoping for rain\nbefore it turns yellow'
poem3 = 'There\nonce\nwas\na\ndragon'

def pin_extractor(poem, poem2, poem3):
    secret_codes = []
    poems = [poem, poem2, poem3]
    for poem in poems:
        secret_code = ''
        lines = poem.split('\n')
        for line_index, line in enumerate(lines):
            words = line.split()
            if len(words) > line_index:
                secret_code += str(len(words[line_index]))
            else:
                secret_code += '0'
        secret_codes.append(secret_code)
    
    return secret_codes
    


print(pin_extractor([poem, poem2, poem3]))

In the code I sent, I specified the variable poems, but the exercise did not require it. However, removing it does not work.

Double check what the parameter defined in the function def should be

Look at all the instructions and make sure you implemented each part

Please share a link to the challenge

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Get Help > Ask for Help button located on the challenge.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.