Mapped to CBSE AI subject code 843 — Class 11 syllabus.
Python OOP & classes
Aanya and Vihaan reach a new challenge: "Python OOP & classes". Think about student class.
Pixel beeps: "Don't just read about it — let's learn by DOING. Try the demo below! "
Objects model the world. Object-Oriented Programming groups data and behaviour into classes. A Student class holds name and marks (data) plus a study() method (behaviour).
Blueprints & instances. A class is a blueprint; each object you create from it is an instance. One Student class can create thousands of student objects.
class Student: def __init__(self, name, marks): self.name=name; self.marks=marks — create many students from one blueprint.
Tap a Mango, then tap the Mango box.
A class is a…
› Click Run to execute. First run loads Python (~6s).
- Objects model the world
- Blueprints & instances
Finish the demo and practice above to continue.