assignment_1.ipynb: Created functions to complete Python Assignment 1.#2
Open
assignment_1.ipynb: Created functions to complete Python Assignment 1.#2
Conversation
dwz92
approved these changes
Sep 11, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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