Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 02_activities/assignments/assignment_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand All @@ -73,7 +73,7 @@
"source": [
"# For testing purposes, we will write our code in the function\n",
"def anagram_checker(word_a, word_b):\n",
" if sorted(word_a.lower()) == sorted(word_b.lower()): #First change all characters in both strings to lower case by using .lower() function and then sort the characters in alphabetical order with sorted() function. Check if the strings are the same.\n",
" if sorted(word_a.lower()) == sorted(word_b.lower()): # First change all characters in both strings to lower case by using .lower() function and then sort the characters in alphabetical order with sorted() function. Check if the strings are the same.\n",
" return True # If the strings are the same, then return True.\n",
" else:\n",
" return False # Otherwise, return False.\n",
Expand Down
Loading