📖 Coding lessons · 2 of 4 · 4 min

Variables: boxes for values

A variable is a named box that stores a value. In Python:

name = "Asha"
score = 10
score = score + 5
print(name, score)

This prints Asha 15. The value in the box changed from 10 to 15.

Types of values: whole numbers (int, 10), decimals (float, 3.14), text (str, "Asha") and True / False (bool).

💡 Good names explain themselves: marks_total is better than x. Names cannot start with a digit or contain spaces.

🎯 Try it

After a = 4 and then a = a * 2, what is a?

Contact Shuddhi

Like what you see? Take the next step.

Start small and do more whenever you are ready — everything is free to join.

  1. GiveFor you

    Donate once or every month. 80G receipt by email from ₹100.

  2. Volunteer

    Weekends on the ground or online from home. Certificate after one month.

  3. Raise funds

    Start a free campaign for a cause, a person or an NGO and share it with friends.

  4. Lead & partner

    Take on more: coordinate a team, bring your NGO on board or partner as a company.