Skip to content

assignment_1.ipynb: Created functions to complete Python Assignment 1.#2

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

assignment_1.ipynb: Created functions to complete Python Assignment 1.#2
vivyuen wants to merge 1 commit intomainfrom
assignment-1

Conversation

@vivyuen
Copy link
Copy Markdown
Owner

@vivyuen vivyuen commented Sep 11, 2024

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

I added code to create a function called anagram_checker(). The function takes in two strings and, in the modified version, checks to see if the strings are anagrams by sorting the characters and checking if they are directly equal to each other.

What did you learn from the changes you have made?

I generally feel a lot more comfortable using git commands in the terminal and created branches and the process of creating pull requests and submitting assignments. I also learned about the difference between the sorted() and sort() functions; the behaviour of str vs lists vs arrays.

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

No, not really. I feel this task has a somewhat straightforward result. I would like to learn more about list comprehensions and how to improve the efficiency and readability of my code.

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

Not too many challenges. I did get an error related to my indentation but that was it.

How were these changes tested?

I tested my code in my code editor as I was writing it.

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

Checklist

  • I can confirm that my changes are working as intended

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