Category Python OOPS

Python Classes and Objects

Image

Python classes are the foundation of every non-trivial program. After years of using them daily, I have a good sense of what actually helps someone grasp this material quickly and what just confuses people. This guide is the article I…

Top 100 Python OOP MCQs for Coding Exams (2026)

Python OOP MCQs for Coding Exams

OOPs (Object-Oriented Programming) means writing code using objects and classes. There are four pillars of OOP: inheritance (reusing properties of a parent class), polymorphism (one interface, multiple behaviours), encapsulation (hiding data inside classes), and abstraction (showing only essential details). Python…

What Is __init__.py Used For?

Init Py

Imagine you’re doing a project. You went and downloaded a package you needed for it, and when you opened the package, what do you see? A file named __init__.py is present in it that no one told you about. Ever…

The Magic Methods in Python

Magic Methods In Python

The magic methods in Python programming language are specifically for Object Oriented Design. Every class that we create has its own magic methods. Python’s standard interpreter assigns these to every class we create inside it. So, in this article, we…

Attributes of a Class in Python

Attributes Of A Class In Python

Classes are a fundamental part of the Python language. They provide a way to group related functionality together, and they play a central role in object-oriented programming. In this article, we’ll take a look at the attributes of a class…