Question: Problem 2 - anagrams . py Write a function is _ anagram ( word 1 , word 2 ) that compares two strings and returns

Problem 2- anagrams .py
Write a function is_anagram(word1, word2) that compares two strings and returns a boolean denoting
whether they are anagrams.
> is_anagram ('rat', 'tar')
True
> is_anagram ('rat', 'hat')
False
> is_anagram ('meat', 'team')
True
 Problem 2- anagrams .py Write a function is_anagram(word1, word2) that compares

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!