Skip to content

completed assignment 1#1

Open
yulizhang11 wants to merge 2 commits intomainfrom
assignment-1
Open

completed assignment 1#1
yulizhang11 wants to merge 2 commits intomainfrom
assignment-1

Conversation

@yulizhang11
Copy link
Copy Markdown
Owner

@yulizhang11 yulizhang11 commented Nov 30, 2025

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

I added code to assignment 1 jupyter notebook to create anagram checker

What did you learn from the changes you have made?

I applied concepts such as functions and logic operators.

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

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

Mostly just following the logic of the program and making sure the tester cells produce correct outputs.

How were these changes tested?

I ran the tester cells after completing the code

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

Checklist

  • I can confirm that my changes are working as intended

Copy link
Copy Markdown

@xindizhang xindizhang left a comment

Choose a reason for hiding this comment

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

Great work! You are almost there, you code is clean and well-written. Please address the following change request to complete the assignment:

You're currently checking whether all letters in word_b exist in word_a, but not whether they appear the same number of times. This means some non-anagrams might incorrectly return True.

Could you think of a way to also compare the frequency of each letter in both words?

Feel free to reach out if you have any questions!

…nditions. I tested the

two conditions on the two hypothetical examples: apple / aple and apple / aaple.
@yulizhang11
Copy link
Copy Markdown
Owner Author

Great work! You are almost there, you code is clean and well-written. Please address the following change request to complete the assignment:

You're currently checking whether all letters in word_b exist in word_a, but not whether they appear the same number of times. This means some non-anagrams might incorrectly return True.

Could you think of a way to also compare the frequency of each letter in both words?

Feel free to reach out if you have any questions!

Hello Xindi, please see the changes. Thanks. Andy

Copy link
Copy Markdown

@xindizhang xindizhang left a comment

Choose a reason for hiding this comment

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

Thank you for addressing my comments. Great work! Your assignment 1 is complete – no changes needed.

One suggestion for future improvements: I suggest adding comments or brief documentation to your code. It’s a good practice that makes it easier for you to review and debug later, and helps teammates understand it quickly.

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