# Functions With Strings

![](/files/-MRzyVAXwCgJmGapxK_D)

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.&#x20;

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

Sample Output:
The past tense of talk is talked.
```

![](/files/-MS9KkSx6y98_t9riUC-)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://computational-thinking-in-room11.gitbook.io/room112-textbasedprogrammimg/unit-1/string-basics/functions-with-strings.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
