An open API service indexing awesome lists of open source software.

https://github.com/hansalemaos/drop_duplicates_nested_list

Drops duplicates from nested list
https://github.com/hansalemaos/drop_duplicates_nested_list

drop duplicates list python

Last synced: about 1 month ago
JSON representation

Drops duplicates from nested list

Awesome Lists containing this project

README

          

# Drops duplicates from nested list

```python
$pip install drop-duplicates-nested-list

from drop_duplicates_nested_list import drop_duplicates
L = ['a', ['aa', 'a'] ,'a',['aa', 'a'] ,['bb', ['ccc', 'ddd'], 'ee', 'ff'], 'g', 'h',['bb', ['ccc', 'ddd'], 'ee', 'ff']]

print(drop_duplicates(L))
['a', ['aa', 'a'], ['bb', ['ccc', 'ddd'], 'ee', 'ff'], 'g', 'h']

```