# Python

Python `requests` snippets that mirror the [quiz scenario recipes](/quick-start/quizzes/quiz-examples.md). See the [Python guide](/code-samples/language-quickstarts/python.md) for setup.

## Recipes

* [📝 Create a Quiz from Text](/code-samples/quizzes/python/from-text.md)
* [🔗 Create a Quiz from a Website](/code-samples/quizzes/python/from-website.md)
* [🎚️ Set Difficulty and Language](/code-samples/quizzes/python/set-difficulty-and-language.md)
* [💡 Create a Quiz from a Topic Prompt](/code-samples/quizzes/python/from-topic.md)
* [🏢 Apply Brand Settings with `projectId`](/code-samples/quizzes/python/brand-with-project-id.md)

Need cURL? Jump back to the [quick-start examples](/quick-start/quizzes/quiz-examples.md).


---

# 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://docs.autocontentapi.com/code-samples/quizzes/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.
