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

Jimoh yusuf exercises #93

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Jimoh yusuf exercises #93

wants to merge 20 commits into from

Conversation

yusufjimoh
Copy link

  • implemented word counter exercise one

@GuiMacielPereira GuiMacielPereira self-assigned this Jun 4, 2024
…sing python class)

- The code contain
- a ShapeClass class that contain general properties, method and abstract methods to be inherited by specific shapes
- Triangle, Rectangle, Square and Circle classes, the classes inherit properties and methods of the ShapeClass
- test_word_count.py which hold codes for tests
- ShapeSorter class


def count_word_occurence(words):
word_counts = Counter(words)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice use of Counter, I didn't even know that was thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants