Question: Create a python code for the given problem. Please include an interface for the user to type the input value. Problem E: Anagrams!? 1 ?
Create a python code for the given problem. Please include an interface for the user to type the input value.
Problem E: Anagrams!? Or gamble, Spear Man...
Determine if string inputs of multiple words from the user are anagrams of each other or not. Strings are said to be anagrams of each other if they contain the same set of letters, although sorted differently. For this project, characters that are not in the alphabet spaces punctuation marks and the cases of the strings should be ignored by the program in its anagram analysis. However, the input may include special characters.
Hint: Use a combination of string methods, list methods, and loops to iteratively remove unnecessary characters and separate the strings' characters so that you can manipulate their orders.
Here are some sample anagram pairs you can try: Away!! Melon lord lives! and Evil men always drool., What does Bulbasaur eat, son? and Bulbasaur eats wooden hats!, Morpheus is the King of Dreams. and Kingdom pressure hits ham foe., or William Shakespeare and lll make a wise phrase.
Sample Runs with INPUT and OUTPUT
Sample Run #
Enter base string: I am stressed
Enter comparison string: many desserts
Thev are not anagrams.
Sample Run #
Enter base string: Is the life strange?
Enter Comparison string: Singe the art files!
They are anagrams.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
