Locked lesson.
About this lesson
Storing information in variables is easy!
Exercise files
Download this lesson’s related exercise files.
Variables.docx58.8 KB Variables - Solution.docx
58.8 KB
Quick reference
Variables
Variables are containers that hold things.
When to use
Use variables all the time to store things.
Instructions
Variable names should be lower case, and multiple words should be separated by underscores. Don't use uppercase letters in variable names.
Variable names should be descriptive.
To create a variable:
my_name = "John Elder"
my_number = 41
Hints & tips
- Variables let us store things
- They're like containers that we can put things in
Lesson notes are only available for subscribers.