Created
December 10, 2021 07:31
-
-
Save pralabhsaxena05/d6444174a5671d4405de5498836dd01f 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
import itertools | |
mylist = [[-2, -3], [10, 30], ['apple', 'orange']] | |
print(list(itertools.chain.from_iterable(mylist))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment