Tell us what’s happening:
I don’t know what it mean by the loop isn’t iterating or it isn’t inside the loop.
Your code so far
# User Editable Region
def pin_extractor(poem):
secret_code = ''
lines = poem.split('\n')
for line in lines:
words = line.split()
for line_index, line in enumerate(lines):
print(line_index, line)
poem = """Stars and the moon
shine in the sky
white and bright
until the end of the night"""
pin_extractor(poem)
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Challenge Information:
Build a Pin Extractor - Step 7