Skip to content

UofT-DSI | Python - Assignment 1#4

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

UofT-DSI | Python - Assignment 1#4
alanmj950 wants to merge 2 commits intomainfrom
assignment-1

Conversation

@alanmj950
Copy link
Copy Markdown
Owner

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

Implemented an anagram checker function with optional case sensitivity.

What did you learn from the changes you have made?

Learned how Python sorts characters (ASCII vs alphabetical) and the importance of normalizing case.

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

Yes, an approach involves using list() and comparing each character one by one.

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

Handling uppercase vs lowercase sorting. Solved by converting inputs to lowercase when case sensitivity is disabled.

How were these changes tested?

Tested with sample word pairs.

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

N/A

Checklist

  • I can confirm that my changes are working as intended

Copy link
Copy Markdown

@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.

2 participants