CPSC120A
Fundamentals of Computer Science I

Post-lab 21

String Traversal

Do one of the following programming problems:

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.


Is Integer

Write a function called is_integer(text) that has a single parameter string parameter, text. The function should return True if text is an integer expressed entirely as digits and False otherwise. The function should not use any string methods.