Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python: dunder init method

class Student:
    def __init__(self, name):
        self.name = name
Source by pyhurry.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #dunder #init #method
ADD COMMENT
Topic
Name
4+5 =