If you work with Python OOPS, you must use instance attributes all the time. This video not only explains instance attributes in OOPS, but also dives deep into why we need __init__ and the use of self. Check out the video here.
Why do you need __init__? What is self?
Why do you need __init__? What is self?
Why do you need __init__? What is self?
If you work with Python OOPS, you must use instance attributes all the time. This video not only explains instance attributes in OOPS, but also dives deep into why we need __init__ and the use of self. Check out the video here.