Skip to content

UofT-DSI | python - Assignment 1#1

Open
Robocoph wants to merge 1 commit intomainfrom
assignment-1
Open

UofT-DSI | python - Assignment 1#1
Robocoph wants to merge 1 commit intomainfrom
assignment-1

Conversation

@Robocoph
Copy link
Copy Markdown
Owner

@Robocoph Robocoph commented May 2, 2025

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

Submitting the assignment through Assignment_1.ipynb by adding code

What did you learn from the changes you have made?

Great lecture content, brushing up on the basics

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

Yes, I wanted to initially do UPPER conversion but then I realized it does not handle all conversions well, especiallly special characters. So, I used casefold() although it was not convered in the lecutre.
I convert string to a list and do a list compare, but then I realized I can just transform the string without doing the whole list manipulation, making the code much simpler.

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

No, all went fine.

How were these changes tested?

Locally, and I manually tried with several words

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

N/A

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.

Good. One note for improvement, no need for 'if...else'—the comparison itself returns a boolean
return sorted(word_a.lower()) == sorted(word_b.lower())

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