Preliminary
- Due Date: Friday, December 10 by 12:45
- This is an individual assignment.
Anagrams Evaluator - 100 points
In this assignment, you will use your knowledge of Python strings to detect whether the letters in two user-entered phrases are anagrams of one another.
Sample Output Transcript
Write a Python program that matches the functionality and output format of this sample transcript.
Requirements and Grading
- 15 points - A function named
get_phrase
is part of the solution. The function prompts the user for a phrase and returns just the letters (converted to lowercase) of whatever the user enters. For example, if the user entersHello, there!
, the function would returnhellothere
. All or nothing. - 15 points - A function named
anagrams
is part of the solution. The function is passed two phrases and returnsTrue
if the phrases are anagrams of one another andFalse
otherwise. All or nothing. - 40 points - Anagrams are detected correctly. (15 points per type of error up to 40 points.)
- 10 points - The output format is matched exactly. (3 points per type of difference up to 10 points.)
- 10 points - Appropriate comments are included throughout the solution. (3 points per missing comment up to 10 points.)
- 10 points - The solution is easy to understand and of high quality. (4 points per type of improvement up to 10 points.)
Submission
Place the solution in a file named anagrams_[firstname].py
and submit it in the Portal no later than 12:45 PM on Friday, December 10.