Question: Could you help me revise itThank you Create a Python function plural that returns the plural of a word given the following rules: If the

Could you help me revise itThank you  Could you help me revise itThank you Create a Python function

Create a Python function plural that returns the plural of a word given the following rules: If the word ends with s or h,add es to the end. If the word ends with a y, change it to ies Otherwise, just add an s to the end of the word. You may assume that the last letter of the word is lowercase. [80]: def pluralize(w): if(r(len(w)-1]-, s' orr(len(w)-1]_'h, ): elif(w[len (w)-1-) else: return w # Your code here In [81]: pluralize( Fish')Fishes" Out [81]: False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!