Question: Introductory Python course - need help. Please be simple with your functions. An anagram is a word, phrase, or name formed by rearranging the letters

Introductory Python course - need help. Please be simple with your functions.

Introductory Python course - need help. Please be simple with your functions.

An anagram is a word, phrase, or name formed by rearranging the letters of another. For example, cinema is an anagram of iceman, since they contain the same letters. Write a function that takes, as an argument, two strings, string1 and string2, and determines if they are anagrams. Name this function anagrams(string1, string2). For example, >>>anagrams("cinema", "iceman") should return True. As another example, >>>anagrams("hello", "world") should return False

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!