Find no.of unique elements in list

Submitted 4 years, 2 months ago
Ticket #342
Views 398
Language/Framework Python
Priority Low
Status Closed

Hi guys ,actually I am having a list of elements which have duplicate elements also.......

So I want to find no.of unique elements present in the list.....

Any help will be very useful...

Thanks in advance

Submitted on Feb 08, 21
add a comment

1 Answer

Verified

You can use the len() function to count the elements present in the list.

Use the set() function to remove duplicates.

Submitted 4 years, 2 months ago


Latest Blogs