# Tuples

* For the most part, we can just consider tuples to be immutable lists
* Tuples are defined by ( )
* The items of tuples are separated by commas
* a neat trick we can do with tuples is unpacking

```
In [1]: atuple=('Python','2.0', ('was','released'), ['on','October','16th','2000'])

In [2]: atuple[3][3]
Out[2]: '2000'

In [3]: atuple[1]='3.0'
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/net/rowley/ifs/data/bcc/duan/test_python/<ipython-input-3-6f783710c508> in <module>()
----> 1 atuple[1]='3.0'

TypeError: 'tuple' object does not support item assignment
```


---

# 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://igb.mit.edu/mini-courses/python/introduction-to-python-for-biologists/types/tuples.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.
