Build a Pin Extractor - Step 6

Tell us what’s happening:

i feel like my code is correct i just do not know where i’m going wrong. is it supposed to return something specific?

Your code so far

def pin_extractor(poem):
    secret_code = ''
    lines = poem.split('\n')
    for line in lines:
        print(line)

# User Editable Region

        for words in line: 

# User Editable Region

            words = line.split()
        print(words)
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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

Challenge Information:

Build a Pin Extractor - Step 6

1 Like

Looks like a formatting issue to me. Try to format the code properly like you did at the top portion and run it again

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.