Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Defining a Class in Python

class MyNewClass:
    '''This is a docstring. I have created a new class'''
    pass
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #Defining #Class #Python
ADD COMMENT
Topic
Name
9+7 =