Skip to content

Create a func to check whether two valid strings are anagrams or not#1

Open
Hossein-Bg wants to merge 2 commits intomainfrom
assignment-1
Open

Create a func to check whether two valid strings are anagrams or not#1
Hossein-Bg wants to merge 2 commits intomainfrom
assignment-1

Conversation

@Hossein-Bg
Copy link
Copy Markdown
Owner

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

I am trying to create a function using the def command in Python to check whether two strings are anagrams or not. After that, I used lower() and sorted() to sort all the lowercase characters.

What did you learn from the changes you have made?

I learned how to easily create a function and use it in your code or any code. Besides, I understand that using built-in functions is an efficient way to write your program.

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

For the first part of the assignment, I was thinking I could convert all the characters to uppercase instead of lowercase by using upper() command.

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

The main challenge was understanding the correct order of built-in functions to use in order to complete the assignment. To overcome this, being able to ask questions directly to the technical support team was the solution for me.

How were these changes tested?

They should be tested as a code.

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

Checklist

  • [✔] I can confirm that my changes are working as intended

Copy link
Copy Markdown

@dwz92 dwz92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part two: Return only bool values. Not a string or use print()

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