A social media site offers a contest to write a
humorous short paragraph. A constraint on the creative format: the entry must include
a question, a quote, a compound sentence, and an exclamation. These would
contain the characters ?, ", ,, and !, respectively.
Create a function how_eligible(essay) that returns 0 to 4, equal to the number of these four characters that
the essay included. As pair programmers, generate ideas for how to solve this
problem, strategize, and then code and test iteratively.
My code:
No comments:
Post a Comment