Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counting unique elements in a list of lists #413

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

abertsch72
Copy link

Please describe your program and how to run it.

This program counts the number of unique elements in a list of lists. In this instance, it's lists of lists of single characters, but the items can be any type. To change the result, just change the value of the variable seqs.

In all seriousness, this isn't exactly a method I'd propose -- but the nested list comprehension has a certain "found poetry" vibe.


What Programming Language?
Python

@wzhouwzhou wzhouwzhou added hacktoberfest-accepted Hacktoberfest! Lang: Python Contributions made in Python labels Oct 27, 2019
@wzhouwzhou wzhouwzhou added this to In progress in Hacktoberfest 2019 via automation Oct 27, 2019
Hacktoberfest 2019 automation moved this from In progress to Reviewer approved Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hacktoberfest! Lang: Python Contributions made in Python
Projects
Hacktoberfest 2019
  
Reviewer approved
Development

Successfully merging this pull request may close these issues.

None yet

2 participants