__init__

/Tag: __init__

Python Tutorial for Beginners 25 – Python __init__ and self in class

By |2020-10-08T09:58:18+00:00October 8th, 2020|Python Video Tutorials|

In this Python Tutorial for Beginners video I am going to show How to use __init__ method and self self keyword in python. So what does the __init__ method do in python ? __init__ method is used as a constructor for the class. Usually __init__ does some initialization work e.g. initialize attributes and other functions.The [...]