Question: Write a Python code to implement the following: Input a 5-character word from the list below Adult Agent Anger Apple Award Basis Beach If the

Write a Python code to implement the following:

Input a 5-character word from the list below

  • Adult
  • Agent
  • Anger
  • Apple
  • Award
  • Basis
  • Beach

If the last character in a 5-character string s is y, then

  1. change the y to i
  2. add es
  3. assign the result to a variable plural. Otherwise, just add s and assign the result to a variable plural

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!