CPSC120B
Fundamentals of Computer Science I

Post-lab 19

Strings

Anagram

Write a function is_anagram(word_1, word_2). Your function return True if word_1 is an anagram of word_2. Two words are anagrams if every letter (ignoring spaces and punctuation) occurs with the same frequency in both strings. You can assume all letters are lowercase in each string.