> For the complete documentation index, see [llms.txt](https://eduapps.gitbook.io/python-intro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eduapps.gitbook.io/python-intro/3.-text-in-python.md).

# 3. Text in Python

\
Data does not have to be numbers. Text is also a useful data type, which is called **string** Unlike integer and float data types, strings are enclosed in single or double quotation marks (`' '` or `" "`).

```python
"Hello"
```

You can perform operation on strings:

```python
"Hello" + " mary"
>> Hello mary

string1 = "Hello"
string2 = " Eric"
string1 + string2
>> Hello Eric
```

{% hint style="info" %}
Note that blank space matters in strings. \
e.g.`"hello"` and `" hello"`are two different string values.&#x20;
{% endhint %}

You can find out the length of a string (e.g. how many letters) as follow:

```python
len('hello')
>> 5

string2 = " Eric"
len('Hello'+string2)
>> 10
```

\
Note that `len()` is a **function**. A function does some useful work on the an input (content inside the bracket; in this case, the string "`hello"`) and outputs something (e.g. an integer showing the length of the string)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://eduapps.gitbook.io/python-intro/3.-text-in-python.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
