In this lesson, you'll learn how to create and use variables in your programs to store and manipulate data.
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)
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!
What is the correct way to declare a variable in Python?
© 2025 Ocean Explorer | All Rights Reserved