Skip to content

Python assignment-1#1

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

Python assignment-1#1
cyberqubit wants to merge 1 commit intomainfrom
assignment-1

Conversation

@cyberqubit
Copy link
Copy Markdown
Owner

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

I write a program to check if two valid words are anagrams.

What did you learn from the changes you have made?

I learned how to process strings using variables, loops, control flow, and string methods.

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

I was thinking of using some other methods and data types.

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

At first, I had to figure out how to check each character in each word. I overcame it by doing some research.

How were these changes tested?

They were tested on the cells.

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

N/A

@mentions of the person or team responsible for reviewing proposed changes (At least 2 people)

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.

Good. Although, your code is quite complex. I would suggest making your functions as concise as possible. For example, part a could be written in 2 lines
def anagram_checker(word_a, word_b):
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