course content

Course Content

Introduction to Python

Storing NumbersStoring Numbers

Variables in programming are abstract local storages for values. In the previous section, you calculated some math expressions. What if we need some of the numbers in the future? Recalculating seems a bit irrational.

To refer to a specific value in the future, we need to use a particular name for the variable. Use the equality sign = for assigning value to a variable. For example, you can assign the value 2022 to the variable year, and then output it or perform any arithmetic operation using its name.

Task

This is the seventh chapter of the course. Create a variable chapter with a value of 7.

question-icon

Fill in the blanks to complete the task.

_ _ _
_ _ _
_ _ _

Click or drag`n`drop items and fill in the blanks

dots
7
dots
chapter
dots
=
down-icon

Section 2.

Chapter 1