Functions With Strings

Write a python function named pasttense that accepts a string called verb as an input and displays the original verb and the verb with an "ed" added onto the end. See the function header and sample output below.

pasttense(verb):
    #body of the function goes here
    

Sample Output:
The past tense of talk is talked.

Last updated