Login
Remember
Register
Ask a Question
How to create a class in Python?
0
votes
asked
May 23, 2020
in
Python
by
sharadyadav1986
How to create a class in Python?
#python-class-create
#create-class-python
Python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 23, 2020
by
Robindeniel
In Python programming, the class is created using a class keyword. The syntax for creating a class is as follows:
class ClassName:
#code (statement-suite)
Example of creating a class in Python.
Output:
XYZ
...