A Glimpse into Variables

Are you as excited as I am to advance to the next part of our learning journey? The topic of this lesson is variables — a core concept that you will use constantly in your programming career.

Meet the Variables

In programming, a variable is akin to a container for storing information. Various types of information — such as words, numbers, and more — can be stored in this container. Here is an example of how to create a variable:

Python
1destination = "Paris"

We've created a variable named destination and stored the string "Paris" in it. In programming, including Python, we refer to text as a string because it is viewed as a sequence or a "string" of individual characters joined together, much like beads strung together on a thread.

The Impact of Variables

Variables play a fundamental role in most programming languages, including Python. They serve as aids, reducing complexity and making our programs more readable and maintainable. For instance, if we aim to fly to various locations instead of just Paris, we can simply change the value of the variable destination without having to modify our entire code.

So, why are variables significant? They are among the fundamental building blocks of coding. Mastering them will put you on the right path to becoming a proficient programmer. Are you excited? Let's delve into the practice session and explore the world of Python variables together!

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal