array = [['a','b'], ['a', 'b','c'], ['a']]
result = {x for l in array for x in l}
More Related Contents:
- How do you remove duplicates from a list whilst preserving order?
- Get difference between two lists
- Python Sets vs Lists
- Python -Intersection of multiple lists?
- In Python, when to use a Dictionary, List or Set?
- What makes sets faster than lists?
- Checking if all elements in a list are unique
- How do I remove duplicates from a list, while preserving order?
- Add list to set
- How to sort and remove duplicates from Python list? [duplicate]
- How to construct a set out of list items in python?
- How to compare a list of lists/sets in python?
- How to make a set of lists
- What is the difference between sets and lists in Python?
- Which is faster and why? Set or List?
- What is time complexity of a list to set conversion?
- Fastest way to search a list in python
- Get difference between two lists with Unique Entries
- set of list of lists in python
- How to convert a set to a list in python?
- Find non-common elements in lists
- How do I concatenate items in a list to a single string?
- Why does this iterative list-growing code give IndexError: list assignment index out of range?
- Slicing a list in Python without generating a copy
- Take the content of a list and append it to another list
- How to find the maximum value in a list of tuples? [duplicate]
- In Python, why is list[] automatically global?
- How do I sort this list in Python, if my date is in a String?
- Python Sort One List According to Another List
- All possible permutations of a set of lists in Python