KIIT Polytechnic logo Students Hub KIIT Polytechnic साइन इन
▲बोर्ड ◆नोट्स ≡सिलेबस ▦टाइमटेबल ?डाउट ▶रील्स 🎮सीखें 🐍कोर्स ◈मौके ✍ब्लॉग ▮स्टोर ★टीम ⌕खोजें
← Learn to Code — Python for Beginners मॉड्यूल · Storing Information

Variables

A variable is a name you give to a piece of information, so you can use it again later without retyping it.

name = "Priya"
age = 18
print(name)
print(age)

Here, name and age are variables. The = sign doesn't mean "equals" like in maths — it means "store this value under this name."

You can change what's stored in a variable at any time:

score = 0
print(score)
score = 10
print(score)

Try it below: make a variable with your own name and branch, and print a sentence using both.