get_unique_items_in_a_list
This is an old revision of the document!
Get unique items in a list
Task
Get the unique items from
['nowplaying', 'PBS', 'PBS', 'nowplaying', 'job', 'debate', 'thenandnow']
This can be one of three ways:
- Order does not matter.
['thenandnow', 'debate', 'nowplaying', 'PBS', 'job']
- Preserve the order. Keep the first unique one.
['nowplaying', 'PBS', 'job', 'debate', 'thenandnow']
- Preserve the order. Keep the last unique one.
['PBS', 'nowplaying', 'job', 'debate', 'thenandnow']
get_unique_items_in_a_list.1627076023.txt.gz · Last modified: 2021/07/23 21:33 by raju