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.