Page 163
return[ group for group in sorted_string_to_anagrams.values() if len(group) >= 2 ]
Can someone explain this stmt to me pls? Thx
Page 163
return[ group for group in sorted_string_to_anagrams.values() if len(group) >= 2 ]
Can someone explain this stmt to me pls? Thx
Oh, I get it. This is a list comprehension. Sometimes it takes posting a question to figure out the answer yourself!!