Tell us what’s happening:
ef pin_extractor(poem):
secret_code = “”
lines = poem.split(“\n”)
for line_index, line in enumerate(lines):
words = line.split()
word = words[line_index]
secret_code += str(len(word))
poem =“Stars and the mon\nshine the sky\nwhite and bright\nuntil the end of the night”
return secret_code
Je ne sais pas ou se situe l’erreur aidez moi svp
Your code so far
# User Editable Region
def pin_extractor(poem):
secret_code = ""
lines = poem.split("\n")
for line_index, line in enumerate(lines):
words = line.split()
word = words[line_index]
secret_code += str(len(word))
poem ="Stars and the mon\nshine the sky\nwhite and bright\nuntil the end of the night"
return secret_code
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Mobile Safari/537.36
Challenge Information:
Build a Pin Extractor - Step 12