Previous: Count Words Recursively, Up: Counting via Repetition and Regexps [Contents][Index]
Using a while
loop, write a function to count the number of
punctuation marks in a region—period, comma, semicolon, colon,
exclamation mark, and question mark. Do the same using recursion.