1. Engineering
  2. Computer Science
  3. could you help me revise itthank you...

Question: could you help me revise itthank you...

Question details
Could you help me revise it?Thank you
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
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution