Core: learn it Step 10 of 16 on the Python Developer roadmap
Classes and objects
Classes let you bundle data together with the actions on that data, such as a Student with a name, scores and an average() method. This style, called object-oriented programming, is how most larger Python code and frameworks like Django are organised. Start with simple classes before worrying about advanced features.