#50 Python Tutorial for Beginners | __init__ method

///#50 Python Tutorial for Beginners | __init__ method

#50 Python Tutorial for Beginners | __init__ method

FavoriteLoadingAdd to favorites

Python Tutorial to learn Python programming with examples
Complete Python Tutorial for Beginners Playlist :
Python Tutorial in Hindi :

Editing Monitors :

Check out our website:

Follow Telusko on Twitter:

Follow on Facebook:
Telusko :
Navin Reddy :

Follow Navin Reddy on Instagram:

Subscribe to our other channel:
Navin Reddy :
Telusko Hindi :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20

source

By |2019-09-04T22:38:24+00:00September 4th, 2019|Python Video Tutorials|43 Comments

43 Comments

  1. Mayank Boriyale September 4, 2019 at 10:38 pm - Reply

    Just watched this episode, I really appreciate the effort you have put-in this video. Thank you so much for all the awesome videos

  2. Rishabh Mishra September 4, 2019 at 10:38 pm - Reply

    You can also make it more short like this :-

    class computer:

    def __init__(self,cpu,ram):

    self.cpu=cpu

    self.ram=ram

    print('Config is', self.cpu, self.ram)

    com1 = computer('i5',16)

    com2 = computer('i3',8)

    DONE !! You dont need to have an extra method like Config….. Thanks !

  3. vidhya Suhas kumbhar September 4, 2019 at 10:38 pm - Reply

    Great video I like OOP concept in python

  4. Syk consultancy September 4, 2019 at 10:38 pm - Reply

    Excellent explanation Sir 👍

  5. 1991egill September 4, 2019 at 10:38 pm - Reply

    Zabar 10

  6. ABDUL REHMAN KHAN September 4, 2019 at 10:38 pm - Reply

    Hey Naveen trying to define a function related machine learning.. but couldn't . please need your help for that…

  7. Bhumitra Bhardwaj September 4, 2019 at 10:38 pm - Reply

    Sir..is it also called magic method?

  8. Harsh Soni September 4, 2019 at 10:38 pm - Reply

    5:50 surprize is incapsulation.

  9. Sai prasad September 4, 2019 at 10:38 pm - Reply

    The init program is getting an error that com1 object doesn't take arguments..can u sort it out Sir

  10. Ud Thakur September 4, 2019 at 10:38 pm - Reply

    Sir why we r passing those parameters (cpu, ram) to the init method? Even we can send them directly into the config method? So why you've done that?

  11. Unknown Utuber September 4, 2019 at 10:38 pm - Reply

    When i first seen these stuff i was just veryy excited to come upto this concept(Object Oriented Programming) but when i started watching these videos i haven't understood the topics after name video i don't know why I've seen it several times do i need to read documentation for this help me sir

  12. Vinayak Pallakki September 4, 2019 at 10:38 pm - Reply

    I'm getting some error like "computer take no arguments"

    class computer():

    def _init_(self,cpu,ram):
    self.cpu=cpu
    self.ram=ram

    def config(self):
    print("config is", self.cpu, self.ram)

    com1=computer('i5',65)
    com2=computer('i6',5)

    com1.config()
    com1.config()

  13. Aditya Anandyau September 4, 2019 at 10:38 pm - Reply

    Sir in other language constructor is automatically called, so in python is it in the same way(_init_ , will be called automatically?)

  14. Akhil Kumar September 4, 2019 at 10:38 pm - Reply

    I have searched alot about initializer..eventhough in paid websites cant gave perfect concept…But u gaved…absolutely legend..thank u sir

  15. Madhan Madhan September 4, 2019 at 10:38 pm - Reply

    Can I join with u as assistant !!!!!

  16. Rohan Ram September 4, 2019 at 10:38 pm - Reply

    Absolute legend sir !!!❣️

  17. Shashank P September 4, 2019 at 10:38 pm - Reply

    This is so hard i didn't understood.

  18. Aayush Gupta September 4, 2019 at 10:38 pm - Reply

    just like overloading concept..

  19. AKARSH suryavamshi September 4, 2019 at 10:38 pm - Reply

    Awesome Explanation…….u are absolutely superb……

  20. sidhant khanna September 4, 2019 at 10:38 pm - Reply

    wait i did't got this….:(

  21. MonolinkTV September 4, 2019 at 10:38 pm - Reply

    This guy is actually a life saver if anybody wants to make anything with me to get better at coding add me on discord Monolink#4852

  22. Mr DyPK September 4, 2019 at 10:38 pm - Reply

    AWESOME SIR G…
    this may be the first ever tutorial series on youtube that i'll be watch first time completely… thank you…

  23. Rajesh Raut September 4, 2019 at 10:38 pm - Reply

    So confusing

  24. Nishu Kumar September 4, 2019 at 10:38 pm - Reply

    is self like this keyword in java?

  25. Aanchal Sharma September 4, 2019 at 10:38 pm - Reply

    Great teacher on earth..🙏🙏

  26. Jayanth Ganguru September 4, 2019 at 10:38 pm - Reply

    Superb sir😍😍.. great teaching no words..keep doing more videos

  27. Bloodair1011 September 4, 2019 at 10:38 pm - Reply

    Finally someone explained self properly

  28. Mona Gulapa September 4, 2019 at 10:38 pm - Reply

    Magnificent ! 🙂

  29. lalita chauhan September 4, 2019 at 10:38 pm - Reply

    Thank u learned much

  30. Rajeev Singla September 4, 2019 at 10:38 pm - Reply

    Loved it . Wonderful explanation

  31. Akash Poudel September 4, 2019 at 10:38 pm - Reply

    sir for a fresher things are different……yet if we keep repeating its so interesting to learn from your teaching

  32. Daniel Pilotta September 4, 2019 at 10:38 pm - Reply

    After months of not understanding my teacher's explanations, I finally understood what this piece of code actually does! Thank you very much!!!

  33. Chinmay Jain September 4, 2019 at 10:38 pm - Reply

    you are teaching amazing the best thing is you are telling all neccessary points in very less amount of time

  34. The AllRounder house September 4, 2019 at 10:38 pm - Reply

    print("Just Amazing………………………………..")

  35. Utkarsh Agrawal September 4, 2019 at 10:38 pm - Reply

    One sentence:- Telusko ki Jai. Amazing man. Thank you

  36. Vinod Patel September 4, 2019 at 10:38 pm - Reply

    A parameter is a variable in a method definition. When a method is called, the arguments are the data you pass into the method's parameters. Parameter is variable in the declaration of function. Argument is the actual value of this variable that gets passed to function.

  37. Hemraj Nigaah September 4, 2019 at 10:38 pm - Reply

    Sir your teaching style is awsum……thnqs a lott. I am not from IT backround. But you made it very easy.

  38. Hosea M September 4, 2019 at 10:38 pm - Reply

    I'm so very lost

  39. Ritika Dubey September 4, 2019 at 10:38 pm - Reply

    this is bit confusing!

  40. abhirupa roy September 4, 2019 at 10:38 pm - Reply

    Your videos are just awesome.
    Please discuss more details on matrix.
    I want a complete series on Rest API and Django.

  41. Divendu Ghati September 4, 2019 at 10:38 pm - Reply

    I created below program:

    class Person:

    def _init_(self, name, age):

    self.name = name

    self.age = age

    def myfunc(self):

    print("Hello my name is: " + self.name)

    print("Hello my age is: " + self.age)

    p1 = Person('John',36)

    p1.myfunc()

    But on running it is giving below error:

    TypeError: Person() takes no arguments

  42. Rahul Parida September 4, 2019 at 10:38 pm - Reply

    helpfull video.

  43. jyoti mahesh September 4, 2019 at 10:38 pm - Reply

    Respected sir, as we can create multiple object in a single statement like in c++( say computer com1,com2;) Is there any possible way to declare it. I tried the statement like com1,com2= computer() ,but I got error.

Leave A Comment

*