This is my first post here so I am sorry if something is wrong with formatting.
After a few things trying to get the solution I managed to get a step further with this code:
love_maybe_lines_stripped =  for lines in love_maybe_lines: new_line = lines.strip() love_maybe_lines_stripped.append(new_line)
Obviously I am happy it worked but I wanted to ask why this code
love_maybe_lines_stripped = [love_maybe_lines.strip() for lines in love_maybe_lines]
won’t work as it says that: ‘list’ object has no attribute ‘strip’.
I get that you cannot use the .strip() method for lists per se but isn’t the for loop method used in a list comprehension taking the strings from the list one by one to generate the new list and so it should be handled as a string?
Thank you in advance, I really enjoy the course and your help here in the forum, it helps a lot!
EDIT: readability second code