# python

This section... is currently a pile of notes from across about five years, and hasn't really been cleaned up much. Everything is correct, but there's a decent bit of mess. You've been warned.

General things to keep in mind with Python:

* Python is *zero-indexed*; everything starts at 0
* `strptime` goes from string to datetime object, `strftime` goes the other way

#### Useful Resources

(O'Reilley Data Science Handbook)\[<https://jakevdp.github.io/PythonDataScienceHandbook/>]

(Jupyter Notebook Documentation)\[<https://jupyter-notebook.readthedocs.io/en/stable/>]


---

# 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://katt.gitbook.io/wiki/python.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.
