Week 2 ยท 45-60 min

Variables and Data Types

Week Summary

A quick preview of the main ideas in this week before you begin the slides.

  • What Is a Variable?
  • Naming Variables
  • Number Data Types
  • String Data Type

Glossary

Review these key terms before starting this week. They are kept simple so students can learn the new vocabulary before moving into the slides.

What Is a Variable?
What Is a Variable?
Naming Variables
Naming Variables
Number Data Types
Number Data Types
Slide 1๐Ÿ’ก

What Is a Variable?

Learning goal

Store and work with data using variables.

Read one card at a time. Focus on the main idea first, then look at the visual on the right to help it stick.

A variable stores a value for later use.

Variables are created using a name and an equals sign.

Example: age = 15

Variable names should be clear and descriptive.

Values can change during a program.

Remember

Variables give programs a way to remember and reuse information.

What Is a Variable?

What Is a Variable?

Slide 1 of 8

Use arrows or dots to move through the lesson

Practice

  1. Write 2-3 sentences about what you learned this week.

Coming Next Week: Next: Input, Output, and Strings