Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # a program that takes lists within a list and flattens the list
- # into one list
- import operator
- list = [["a", "b", "c"], ["d", "e", "f"], ["g", "h", "i"]]
- list = reduce(operator.add, list)
- print list
Advertisement
Add Comment
Please, Sign In to add comment