Skip to content

Jimoh yusuf exercises#93

Open
yusufjimoh wants to merge 20 commits into
mainfrom
jimoh_yusuf_exercises
Open

Jimoh yusuf exercises#93
yusufjimoh wants to merge 20 commits into
mainfrom
jimoh_yusuf_exercises

Conversation

@yusufjimoh

Copy link
Copy Markdown
  • 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)

Copy link
Copy Markdown

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