> Source URL: /resources/print.guide
# Print Statements

The `print()` function writes text to the console.

## Example

```python
print("Hello, world!")
# outputs: Hello, world!
```

## Common Patterns

**Print variables**

```python
name = "Ari"
print("Hello,", name)
# outputs: Hello, Ari
```

**Print multiple values**

```python
print("Apples", 3, "Bananas", 5)
# outputs: Apples 3 Bananas 5
```

**Change the separator**

```python
print("1", "2", "3", sep=", ")
# outputs: 1, 2, 3
```

**Change the ending**

```python
print("Loading", end="...")
print("done!")
# outputs: Loading...done!
```

_Tip: the default `end` is a newline (`\n`). If you replace it, the next
`print()` continues on the same line._


---

## Backlinks

The following sources link to this document:

- [print() Guide](/resources/resources.index.llm.md)
- [>ref: ███████](/unit-1/projects/01-me-dot-py/me-dot-py.project.llm.md)
