So this list comprehension section uses the following code:
usernames = [word for word in words if word == '@']
Could someone walk me through what’s happening with the part [word for word in words if word == ‘@’] ? I get the final part (if the first character is an @ symbol) but I really have no clue what the rest of the code is doing. Honestly, I really think it’s the starting “word for” that I’m not getting. The rest makes sense, it’s just visually difficult through repetition of the same word word.
Reminds me of Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.