Do one of the following programming problems:
Most Frequent Character
Write a function called most_frequent(text)
that has a
single string parameter, text. The function should return
the character that occurs most times in the specified text. Assume
that text has at least one character and that there is only
one character that occurs the most times.
Strip Non-alphabetic
Write a function called strip_nonalpha(text)
that has a
single string parameter, text. The funciton should return
a new string that is equivalent to the specified string with all
non-alphabetic characters removed. The function can use the
the isalpha
method, but no other string methods.