I hereby claim:
- I am ahopkins on github.
- I am admhpkns (https://keybase.io/admhpkns) on keybase.
- I have a public key whose fingerprint is F7EB FB5E 0003 E06F 64DE 76AC E8D8 907B 4272 FA55
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
l = [1, 2, 3, [4, 5, 6, [9, 8, 7, [12, 11, 10], 13, 14], 15, 16], 17, 18] | |
def flatten(input): | |
""" Flatten nested iterators. Looks specifically for lists, tuples, and sets, and returns them sorted""" | |
# Prepare the ourput variable | |
output = [] | |
# Look for wheter an input is a list, tuple, or set |
#!/usr/bin/env python | |
# | |
# Extracts email addresses from one or more plain text files. | |
# | |
# Notes: | |
# - Does not save to file (pipe the output to a file if you want it saved). | |
# - Does not check for duplicates (which can easily be done in the terminal). | |
# | |
# (c) 2013 Dennis Ideler <[email protected]> |