NEED HELP WITH PYTHON!!!!!!!!!!! Thank you so so so much. Please write a program that takes a
Question:
NEED HELP WITH PYTHON!!!!!!!!!!!
Thank you so so so much.
Please write a program that takes a word and creates the pluralform of it. English is not a consistent language and there areexceptions to every rule. For this program, we will ignore anyexceptions.
To make regular nouns plural, add ?s to the end. cat – catshouse – houses
If the singular noun ends in ?s, -ss, -sh, -ch, -x, or -z, add?es to the end to make it plural. truss – trusses bus – buses marsh– marshes lunch – lunches tax – taxes blitz – blitzes
If the noun ends with ?f or ?fe, the f is often changed to ?vebefore adding the -s to form the plural version. wife – wives wolf– wolves
If a singular noun ends in ?y and the letter before the -y is aconsonant, change the ending to ?ies to make the noun plural. city– cities puppy – puppies
If the singular noun ends in -y and the letter before the -y isa vowel, simply add an -s to make it plural. ray – rays boy –boys
If the singular noun ends in ?o, add ?es to make it plural.potato – potatoes tomato – tomatoes
If the singular noun ends in ?us, the plural ending isfrequently ?i. cactus – cacti focus – foci
If the singular noun ends in ?is, the plural ending is ?es.analysis – analyses ellipsis – ellipses
If the singular noun ends in ?on, the plural ending is ?a.phenomenon – phenomena criterion – criteria
Please enter a word: phenomenonThe plural form of phenomenon is phenomena.Please enter a word: cactusThe plural form of cactus is cacti.Please enter a word: boyThe plural form of boy is boys.