Question: Write Python code that defines a pluralize function. This function accepts two arguments: noun and count. The count should be an optional argument, with a

Write Python code that defines a pluralize function. This function accepts two arguments: noun and count. The count should be an optional argument, with a default value of 0. The pluralize function should return a string of the form "{count} {noun(s)}", where (count} is the count and (noun(s)} is the appropriate singular or plural form of the noun. If the count is 1, just use the original (singular) noun, but if count is anything else, the second word should be the plural of noun, according to the following rules: If noun ends in o, s, V, X, Z, ch, or sh: add "es" to the end Otherwise: add "s" to the end Your pluralize function does not need to handle nouns with irregular plural forms. For example, it would return "2 gooses", "2 sheeps", "2 oxes", "2 puppys", and "2 scarfs" instead of "2 geese", "2 sheep", "2 oxen", "2 puppies", and "2 scarves
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
