Self and __init__() method in Python | Python Tutorials for Beginners

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ • 64

  • @Chris-vt6nl
    @Chris-vt6nl 8 місяців тому +11

    There are several teachers who complicate even simple topics and make it hard to learn along with personally insulting students not able to understand programming,crippling their confidence saying they will never be able to understand programming😡but a teacher like you makes even a very hard topic easy to understand which is what great teaching is all about. In my school and college wish there was a teacher like you if it was so I'd have been in a wonderful position in software industry!!plz upload a video explaining decorators,generators,metaclasses,concurrency and parallelism

  • @souritranandy6270
    @souritranandy6270 8 місяців тому +4

    I have searched a lot of contents to understand OOPS in python....but i was not able to understand their explanations....but today I am getting all the concepts.... mam you are great......your explanation is crystal clear...Thank you so much mam

  • @abhilash0122
    @abhilash0122 8 місяців тому +5

    self is not a keyword.
    a self is an implicit object that contains the address of the current object.

  • @rajeshreddy7873
    @rajeshreddy7873 Рік тому +7

    class CarDesign:
    pass
    cardesign_1=CarDesign()
    cardesign_2=CarDesign()
    print(type(cardesign_1))
    print(type(cardesign_2))

  • @shaileshbhat93
    @shaileshbhat93 Рік тому +13

    you are making me to love python programming maam.. Thanks for your amazing teaching maam

  • @tvsekhar6788
    @tvsekhar6788 9 місяців тому +1

    "Your Python videos have been a game changer for my learning journey. Thanks for making complex topics accessible and enjoyable!"

  • @justinenjau7936
    @justinenjau7936 2 місяці тому

    I have never seen a great trainer like you. You are the best. Thanks a lot

  • @MrShrikantpattar
    @MrShrikantpattar Місяць тому

    simple way of explaining things whithout confusing and hiding the concepts, very good , keep going, expecting more videos on core concepts of python and web design.

  • @saisuba2698
    @saisuba2698 10 місяців тому +1

    I really really loved ur video because of ur examples ❤....i have zero knowledge in program but i switch my job in IT ... that's why i studying python now......in py everything is an object but class?u said one ex idly maker❤..... Thanks alottttt mam❤❤

  • @tvsekhar6788
    @tvsekhar6788 9 місяців тому +5

    Thanks!

  • @AnandSingh-mi3sv
    @AnandSingh-mi3sv 9 місяців тому +1

    Your classes have crystal clear and simple explanation which is highly appreciated...
    Just a small correction (not at all to demotivate) "self" is not keyword, instead of self we can use any word, but users are recommended to use "self" since it's common most spoken term in python dev community.

    • @jjjmemes420
      @jjjmemes420 4 місяці тому

      Bro how u know this ???

  • @white-hat666
    @white-hat666 3 місяці тому +1

    class Instructor:
    def __init__(self,name,address):
    self.name=name
    self.address=address
    instructor_1=Instructor("Akshu","Hyd")
    print(instructor_1.name,instructor_1.address)
    instructor_2=Instructor("Chinnu","Vizag")
    print(instructor_2.name,instructor_2.address)

  • @sarveshpawar4286
    @sarveshpawar4286 Рік тому +5

    Hello mam it's a highly request please make a video in embedded system how it works , where to use how to master and what are scopes for it how to adapt it please make video on it 😊

  • @flipdruid
    @flipdruid 7 місяців тому

    Thank you, I keep learning and learning. Very clear explanation and understandable.

  • @alokdubey4085
    @alokdubey4085 10 місяців тому +1

    I saw numerous videos to understand __init__ method and self, then came across PyLenin videos, got some idea and then finally saw this video and it has become crystal clear now, thank you so much for this brilliant video, can you tell which IDE you are using, is it IntelliJ. I use Jupyter Notebook but there I don't get the hint and color differentiation.

  • @vaibhavpatharkar6794
    @vaibhavpatharkar6794 Рік тому

    13:02 Madamji maan gaye , bahut hi badhiya sikhaya hai aaapne

  • @futureboy8034
    @futureboy8034 Рік тому +3

    Love from my side for giving beautiful and best contain 💌

  • @azarudeena6467
    @azarudeena6467 8 місяців тому +1

    class CarDesign:
    def __init__(self,name,color,model):
    self.name = name
    self.color = color
    self.model = model
    car1 = CarDesign("Thar","Black","1500CC")
    car2 = CarDesign("Fortuner","white","3000cc")

  • @tamerlanaskarov5538
    @tamerlanaskarov5538 6 місяців тому

    Appreciate your work! Great Explanation!

  • @ronterambabu8153
    @ronterambabu8153 Рік тому +3

    00:02 Discussing the __init__() method and adding attributes to a class in Python.
    02:10 Classes in Python are user-defined data types with a blueprint to create objects
    04:17 Using classes and __init__ method to store attributes for different instructors
    06:38 Constructor in Python initializes data members when an object is created
    08:47 The __init__() method initializes object attributes in Python.
    11:05 Understanding the self and __init__() method in Python
    13:31 The self and __init__() method in Python is used to initialize objects and bind attributes to arguments.
    15:45 Using default parameter values in Python for class attributes
    Crafted by Merlin AI.

  • @johnkamau9580
    @johnkamau9580 5 місяців тому

    Your voice usually gets me 🥺 when are you visiting this great country kenya😍

  • @JuniorVasquez1
    @JuniorVasquez1 Рік тому

    Thanks alot :)! alot easier to understand compared to other regarding this topic.

  • @shortx11
    @shortx11 10 місяців тому

    #1
    class carDesign:
    pass
    obj_1 = Cardesign()
    boj_2 = CarDesign()
    print(type(obj_1))
    print(type(obj_2))

  • @rahulatal1816
    @rahulatal1816 6 місяців тому

    Madam pls guide for major difference between __new__ and __init__
    If __init__ is also a auto-constructor and initializer then why we use __new__
    What is the benefit of using __new__ and what problem we face if we
    Do not use __new__

  • @vaibhavpatharkar6794
    @vaibhavpatharkar6794 Рік тому

    Thaank youji for this lecture. Pl take sql also. Shree raaam be always be with you.

  • @akulakalyanram4288
    @akulakalyanram4288 8 місяців тому

    Very good content ❤

  • @ebubechukwuuchechukwu6018
    @ebubechukwuuchechukwu6018 Місяць тому

    I wish you taught me every subject,😅

  • @shayaanshaikh104
    @shayaanshaikh104 Рік тому

    hello mam.after completing the program plz zoom out screen,so we can note down properly

  • @VivekChoudhary-dl2ji
    @VivekChoudhary-dl2ji Рік тому

    Amazing Video.

  • @user_shivshakti_1111
    @user_shivshakti_1111 Рік тому

    Thank you Mam.

  • @enejivik
    @enejivik 11 місяців тому +1

    class Instructor:
    def __init__(self, instructor_name, address):
    self.name = instructor_name
    self.address = address

    Instructor1=Instructor("victor", "market road")
    Instructor2=Instructor("David", "hostel writing code")

    print("Address: {}".format(Instructor1.address))
    print("Name: {}".format(Instructor1.name))

    print("Address: {}".format(Instructor2.address))
    print("name: {}".format(Instructor2.name))

  • @thanujabantanur5113
    @thanujabantanur5113 Рік тому +1

    Mam l need about standard deviation and varience theory information plz one help

  • @kashifkhan1420
    @kashifkhan1420 Рік тому +2

    how many more video of python you have more

  • @GokulBG-pu3yu
    @GokulBG-pu3yu Рік тому +1

    Hello mam do you have any idea about react or angular tutorial.

  • @edutechz
    @edutechz Рік тому +1

    Mam i love you❤️
    Cool as a teacher ❤

  • @reverbism
    @reverbism Рік тому +1

    If you are watching this video and even you are not interested in Python then hit that like button. we are same

  • @Bhargavi-k9k
    @Bhargavi-k9k Рік тому +1

    Mam do on java classes for degree pls mam

  • @sravankumar1767
    @sravankumar1767 Рік тому

    Nice explanation 👌 👍 👏, and you are So gorgeous 😍 ❤

  • @darktv777
    @darktv777 Рік тому

    You are looking so cool ao i reads with you ❤

  • @publicknowledge4241
    @publicknowledge4241 11 місяців тому

    Ma'am thank you so much...I have search alots on UA-cam but you explain in very easy way...❤❤

  • @kashifkhan1420
    @kashifkhan1420 Рік тому +1

    when will be the course end how many more video

  • @Ashwinkotturu
    @Ashwinkotturu 3 місяці тому

    Function call and class initialisation both look the same😅.😂i dont know why they change these syntaxes so much

  • @shashankmishra6129
    @shashankmishra6129 Рік тому +1

    Numpy bta dijiye please?next video me

  • @anurajyendhe5981
    @anurajyendhe5981 Рік тому

    Hi ma'am
    How to installation Python in vs code please make videos on this topic

    • @dd0n396
      @dd0n396 Рік тому

      You dont install python on vscode. If python is in your path then jt should just work

  • @boinidipushpalatha5750
    @boinidipushpalatha5750 Рік тому

    How many more videos it take to complete this course?mam

  • @irannaroyalroy
    @irannaroyalroy Рік тому

    Super teaching all the way from Karnataka

  • @avnish6492
    @avnish6492 Рік тому

    literally ,you are just awesome ..MAM
    the way you teach, no one gonna be
    yeah actually i find some error in your english but its ok
    agar madam esi ho toh sab chalega

  • @naveen_divine
    @naveen_divine Рік тому

    😍💗

  • @tushantmishra1482
    @tushantmishra1482 Рік тому

    its like structure in c right?

  • @p1nk2002
    @p1nk2002 Рік тому

    1st viewer

  • @dhokamemes
    @dhokamemes 7 місяців тому

    mam biothec walo ko mt bhula kro.. hum bhi seekhne aate hein

  • @shayaanshaikh104
    @shayaanshaikh104 Рік тому

    hello...your voice is very low,in video.

  • @srikanthreddy1171
    @srikanthreddy1171 Рік тому

    Hi you look stunning I mean in a nice way

  • @vamsivamsi7606
    @vamsivamsi7606 Рік тому

    Mam notes

  • @priyanshu_khristi
    @priyanshu_khristi Рік тому +1

    Hello ma'am can you teach in hindi?

  • @nisharaval2800
    @nisharaval2800 Рік тому

    Link for exams

  • @SaiGamingff09
    @SaiGamingff09 5 місяців тому

    class Instructor:
    def __init__(self,name,anime):
    self.name=name
    self.anime=anime
    self.followers=0
    Instructor_1=Instructor("luffy",'OnePieece')
    Instructor_2=Instructor("Naruto",'Naruto')
    Instructor_3=Instructor("Tanjiro",'DemonSlayer')
    Instructor_4=Instructor("Goku",'DragonBalz')
    list=[Instructor_1,Instructor_2,Instructor_3,Instructor_4]
    for data in list:
    print(data.name, ' from' ,data.anime)

  • @yagnavalki3376
    @yagnavalki3376 4 місяці тому

    class Instructor:
    def __ init __(self ,instructor _name, address):
    self .name =instructor _name
    self .address =address
    self .followers =0
    Instructor_1=Instructor("Jenny" ,"Gurgaon")
    print("The first Instructor is:")
    print(Instructor_1.name)
    print(Instructor_1.address)
    print(Instructor_1.followers)
    Instructor_2=Instructor("Yagnavalki" ,"Hyderabad")
    print("The Second Instructor is:")
    print(Instructor_2.name ,'from',Instructor_2.address ,'with followers as ',Instructor_2.followers)
    Output:-
    The first Instructor is:
    Jenny
    Gurgaon
    0
    The Second Instructor is:
    Yagnavalki from Hyderabad with followers as 0