Created
March 16, 2017 13:54
-
-
Save bngsudheer/aa760d8eb8ecad7a95aa7b6b9c6e026e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def flatten(my_list): | |
for a in my_list: | |
if not a: | |
continue | |
for b in a: | |
yield b | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment