Skip to content

Conversation

@tanveerrouf
Copy link
Owner

What changes are you trying to make?

Added an Anagram Checker that can determine if two words are anagrams, with an optional case-sensitive mode. Included a small test script to validate outputs.

What did you learn from the changes you have made?

How to implement basic string manipulation in Python and handle case sensitivity for comparisons.

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

An alternative approach could have been using a Counter from the collections module to count letters instead of sorting, but I chose sorting for simplicity.

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

No major challenges. Initially had to make sure the notebook and test script were properly staged and pushed from the correct folder.

How were these changes tested?

Test cases were added for both the case-insensitive and case-sensitive versions of the function. Output was verified to match expected results.

A reference to a related issue in your repository (if applicable)

NA

Checklist

  • I can confirm that my changes are working as intended

Copy link

@juliagallucci juliagallucci left a comment

Choose a reason for hiding this comment

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

Great!

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.

3 participants