Fish 1 Fish 2 Fish 3 Fish 4

Lesson 1: Introduction to Variables

In this lesson, you'll learn how to create and use variables in your programs to store and manipulate data.

What is a Variable?

A variable is a container for storing data. In programming, we can use variables to hold values, such as numbers, strings, and more. Let’s see an example:

Example in Python:

                age = 25
                print(age)
            

Your Task:

Try to create a variable and print it. If you’re using Python, use the code above and see the result in your Python environment!

Watch the Video:

Quiz: Test Your Knowledge!

What is the correct way to declare a variable in Python?

Select an answer to check if you're correct!

© 2025 Ocean Explorer | All Rights Reserved