Question: Write a Python program to add 'ded' at the end of a given word (length should be at least 3). If the given string already

Write a Python program to add 'ded' at the end of a given word (length should be at least 3). If the given string already ends with 'ded' then add 'ing' instead. If the string length of the given string is less than 3, leave it unchanged.

For example if the word is Hello your print out should say Helloded

If your word is graded, your print should say gradeding.

If your word is at, it should print at

Hint use an if statement, but again that is not the only way to answer this question.

Can you please do it by python idle 3.5

thank you

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!