Build a Pin Extractor - Step 18

Tell us what’s happening:

how in the name of god himself is this wrong. It has asked me to append the list, I have appended the list at the end of the loop. I have moved the line to every single indentation position in this for loop. How is this wrong. If you do not provide instructive comments don’t post anything at all. I am at a point of frustration.

Your code so far

def pin_extractor(poems):

# User Editable Region

    secret_codes = []
    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)

# User Editable Region


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'

# print(pin_extractor(poem))

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36

Challenge Information:

Build a Pin Extractor - Step 18

are you sure that we have something like secret.code?
notice that the user story says

… that appends secret_code

You’re right im just an idiot. thank you. Every issue I have had with python thus far has resulted from a puncuation error either instead of . or , or - or ! or = or + or -: they should be marked with different colors similar to how the built in functions appear in blue. That way they atleast stand out so a user can differentiate it in the code from the rest of the inputs seeings as how critical they are to the code running or not. Either way thanks bud.

I’ve edited your username. Please don’t use harsh words in any form here on the forum. Thank you

1 Like

It’s very confusing for them to use the word “append” on step 15 when they actually meant an augmented assignment and then turn around and use it again to actually mean append() in this step. like wtf

1 Like

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

btw, I created an issue for that here