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