Strings adding or concatenation- Python, assignment help

User Generated

0uj93

Computer Science

Description

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.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Your program is done...


Anonymous
Just what I needed…Fantastic!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags