techhub/python/Python-Variable

What Are Python Variables?

A variable in Python is like a container or label that stores data in memory so you can use or change it later.

Real-Life Analogy:
Imagine a jar with a label on it. You can put anything inside the jar — sugar, salt, coins. The label (the variable) tells you what’s inside.

sugar_jar = "Sugar"
coin_jar = 100
Scroll to Top