Classes and Objects: class definition, __init__, self, creating instances, instance attributes vs class attributes.

  1. Write a Python program to create a `Student` class and display student details using the `__init__()` constructor ?
  2. Write a Python program to create an `Employee` class and display employee information ?
  3. Write a Python program to create multiple objects of a class and display their information ?
  4. Write a Python program to calculate the total marks of a student using a class ?
  5. Write a Python program to demonstrate the use of `self` inside a class ?
  6. Write a Python program to update an instance attribute after object creation ?
  7. Write a Python program to calculate the area of a rectangle using a class ?
  8. Write a Python program to implement a `Product` class with instance and class attributes ?
  9. Write a Python program to count the number of objects created for a class using a class attribute ?
  10. Write a Python program to display student grade using a class method ?
  11. Write a Python program to create a `BankAccount` class and perform deposit operations ?
  12. Write a Python program to create a `Laptop` class and compare the prices of two laptops ?
  13. Write a Python program to calculate the average marks using a class ?
  14. Write a Python program to demonstrate object references ?
  15. Write a Python program to create a `Book` class and calculate the discounted price ?
  16. Write a Python program to create a `Car` class and calculate travel cost ?
  17. Write a Python program to create a `Circle` class and calculate circumference and area ?
  18. Write a Python program to create a `LibraryBook` class to display book availability ?
  19. Write a Python program to create a `Result` class that calculates grade based on percentage ?
  20. Write a Python program to develop a Student Management System using classes and objects to add student details, calculate average marks, assign grades, and display complete student information ?
Previous Topic Modules & Libraries: import, user-defined modules, pip, installing packages, math, random, datetime, File operations + custom functions + error handling in mini assignments Next Topic Methods and Encapsulation: instance/class/static methods, private attributes (_var, __var), getters and setters, @property