Skip to content

UofT-DSI | Python - Assignment 1 #1#1

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

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

Conversation

@alisonwu2019
Copy link
Copy Markdown
Owner

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

Added logic for Anagram checker function.

What did you learn from the changes you have made?

Played around with the python functions and noticed that PyCharm community edition does not support Jupyter notebooks.

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

For checking the anagram pattern, another approach can be finding each character in word a in word b and making sure the index of the character does not overlap. But this approach is more complicated.

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

Pycharm Community edition does not support jupyter notebooks so I switched to vs code.

How were these changes tested?

Ran the code in the cell.

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

N/A

Checklist

  • I can confirm that my changes are working as intended

@alisonwu2019 alisonwu2019 marked this pull request as ready for review May 4, 2024 22:33
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! Your code is well-commented and executes without error. One suggestion would be to remove any lines of code that are not needed; ie if len(word_a) != len(word_b):
return False

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