You might know what variables are in math or science, but what do they do in programming? This lesson will answer that question and show you how to use them. You'll also be able to fly your CoDrone in a square using only variables!

CoDrone Pro/Lite

Arduino

6 - 12+

30 - 45 mins

**2-AP-11**

6-8

Create clearly named variables that represent different data types and perform operations on their values.

**2-AP-16**

6-8

Incorporate existing code, media, and libraries into original programs, and give attribution.

**2-AP-19**

6-8

Document programs in order to make them easier to follow, test, and debug.

**2-CS-03**

6-8

Systematically identify and fix problems with computing devices and their components.

**3B-AP-16**

11-12

Demonstrate code reuse by creating programming solutions using libraries and APIs.

**CCSS.ELA-Literacy.RST.11-12.3** Language Arts

Grades 11, 12

Follow precisely a complex multistep procedure when carrying out experiments, taking measurements, or performing technical tasks; analyze the specific results based on explanations in the text.

Read More**CCSS.ELA-LITERACY.RST.6-8.3** Language Arts

6-8

Follow precisely a multistep procedure when carrying out experiments, taking measurements, or performing technical tasks.

**CCSS.ELA-LITERACY.RST.9-10.3** Language Arts

Grade 9-10

Follow precisely a complex multistep procedure when carrying out experiments, taking measurements, or performing technical tasks, attending to special cases or exceptions defined in the text.

**CCSS.Math.Content.6.EE.A.2** Math

Grade 6

Write, read, and evaluate expressions in which letters stand for numbers.

Read More**CCSS.Math.Content.7.EE.B.4** Math

Grade 7

Use variables to represent quantities in a real-world or mathematical problem, and construct simple equations and inequalities to solve problems by reasoning about the quantities.

Read More**CCSS.Math.Practice.MP1** Math

High School — Geometry

Make sense of problems and persevere in solving them.

Read More**CCSS.Math.Practice.MP5** Math

Grade 3

Use appropriate tools strategically.

Read More**CCSS.Math.Practice.MP7** Math

Grade 5

Look for and make use of structure.

Read More
You are offline. Basecamp running in offline mode.