> For the complete documentation index, see [llms.txt](https://cs4all-icm.gitbook.io/py-intro-to-computational-media-2.0/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cs4all-icm.gitbook.io/py-intro-to-computational-media-2.0/unit-2-respond-and-draw-on-canvas/unit-2-overview.md).

# Unit 2 Overview

### Overview

In this unit, students learn to make their sketches respond to actions taken by the user, from moving the pointer to clicking or touching it over a certain area, to typing on the keyboard. The if statement is introduced. The map function is used to convert inputs into useful ranges.

Students are also introduced to the concept of functions that return values and are given space to practice reading and writing code for functions.

For the final project, students create an expressive drawing tool in the vein of MS Paint.

### Suggested Duration

\~23 - 28 Days

### Prerequisites

Unit 1 Material

### Assessment

Formative Assessments are given during each lesson.&#x20;

Summative Assessments include the Light Switch Game and Drawing Application.


---

# 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://cs4all-icm.gitbook.io/py-intro-to-computational-media-2.0/unit-2-respond-and-draw-on-canvas/unit-2-overview.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.
