Last active
February 23, 2018 12:30
-
-
Save WEBMAMOFFICE/8577ad02892ee6e23f225bd977e4fa53 to your computer and use it in GitHub Desktop.
This file contains 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
# python 3.x version | |
# pip install more_itertools - if not installed | |
import more_itertools | |
youlist = [[1, 2, [3]], 4] | |
res = list(more_itertools.collapse(youlist)) | |
print(res) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using Lists operations with more_itertools module