KIIT Polytechnic logo Students Hub KIIT Polytechnic Sign in
▲The Board ◆Notes ≡Syllabus ▦Timetable ?Doubts ▶Reels 🎮Learn 🐍Courses ◈Opportunities ✍Blog ▮Store ★Team ⌕Search
← Learn to Code — Python for Beginners Module · 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.