Variables

What is a variable?

A variable is a label for a value you want to use in your program. A variable can hold a small piece of information, or it can hold many gigabytes (GB) of data.

What are the rules for naming a variable?

Variable names in Python follow two main rules: First, they must only contains letters, numbers, and underscores. Second, they must start with a letter or underscore. Good variable names are short but descriptive.