Skip to main content

Drops duplicates from nested list

Project description

Drops duplicates from nested list

$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']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drop_duplicates_nested_list-0.10.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page