Class in python

Hello, I'm new in but I am a bit experienced in python. But I am always confused when some tells me about class in python. Can some one help me with this?

You are viewing a single comment. View All
Answered by InvisibleOne [earned 5 cycles]
View Answer


Python is an object oriented programming language, class in python is Something like an outline to create a new object. Class object can be used over and over again as needed.

Let's create a class named "Debbie" we will use the keyword class:

Classes have a function called as init() function to assign values to object properties.

Let's take an example code:

Output -

Explore this resource for detailed explanation of Python class: