# print()

Each `print()` command does two things: displays a value to the user AND moves the cursor down to the next line&#x20;

However - we can modifiy the end of our print command&#x20;

```
print(23)
print(33, end = "-")
print(43)

```

Explain the output that you can see.

So what does , `end =` do??

So far we have been joining strings using the `+,` but for a print statement we can display more than one piece of data without having to join.

```
print("Alicia")
print("Alicia", 9, end ="!  ")
word = "frogs"
print ("Alicia", 9, word, end ="!")
```

**Consider this output from the visualizer**

![](/files/-MSTl2ZhcU36bq0bOgEW)

We are no longing combining strings to create a new string - we are displaying different data types and commands to the user by connecting pieces with a `,`


---

# 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/collecting-data-from-the-user/print.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.
