Skip to content

assignment-1 completed#1

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

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

Conversation

@anupgp
Copy link
Copy Markdown
Owner

@anupgp anupgp commented May 4, 2025

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

A: Adding code to solve assignment-1 questions

What did you learn from the changes you have made?

A: How to use list methods and string functions to solve problems.

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

A: Yes, I through of using list comprehension to achieve the same. But, that has not been covered in the class yet. Additionally, that methods is it more complex. So, I used the most basic and simple operations to accomplish the task.

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

A: Case insensitivity/sensitivity was a hard. But I used a neat trick, which is to convert the entire string into on case and then sorting for comparisons.

How were these changes tested?

A: I checked the answers visually.

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

A: not applicable

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.

Code is functional, but it could be simplified using fewer lines with sorted() and string methods. Please revise

…d string functions and making the code shorter
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