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
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.
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
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.