Skip to content

Assignment 1#1

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

Assignment 1#1
abeerkhe wants to merge 2 commits intomainfrom
assignment-1

Conversation

@abeerkhe
Copy link
Copy Markdown
Owner

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

Adding code to test two strings as anagrams for Python Assignment 1.

What did you learn from the changes you have made?

How to compare two strings as anagrams based on capitalization and lack thereof.

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

I considered converting each character in a string to its numerical ASCII equivalent to compare integer values, but opted not to because: (i) a checksum may not be unique, and (ii) checking the integer per character is no different than the approach taken while increasing compute time.

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

N/A - no challenges executing the idea in this case.

How were these changes tested?

I printed statements throughout the anagram_checker function to output each step: print each word as-is; print each word when lower case; print each word as a list; print each list as a sorted list.

If any print statement was incorrect (e.g., a list printed but I forgot to sort it) then that issue had to be resolved.

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

I created a branch named assignment-one instead of assignment-1 and had to learn to rename the branch, update the upstream, and sync the changes again.

Checklist

  • [ x ] 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