Build a Pin Extractor - Step 5

Tell us what’s happening:

i am iterating using lines and the pop up is asking me to use lines but I’m not sure where I’m supposed to use it. I’m getting the right output on the console.

Your code so far

def pin_extractor(poem):
    secret_code = ''
# User Editable Region
    lines = poem.split('\n')
    for line_index, line in enumerate (lines):
        print(line)
# User Editable Region

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

pin_extractor(poem)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36

Challenge Information:

Build a Pin Extractor - Step 5

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-pin-extractor/68553423d775cc60134ac8bb.md at main · freeCodeCamp/freeCodeCamp · GitHub

Hi @sarahmahvy,

It looks like you’re overcomplicating this step a bit since you were not asked to apply enumerate() to lines. You were simply asked to loop over lines using line as a loop variable.

Happy coding

understood, thanks for the help