#54 Python Tutorial for Beginners | Inner class

///#54 Python Tutorial for Beginners | Inner class

#54 Python Tutorial for Beginners | Inner class

FavoriteLoadingAdd to favorites

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

Github :-

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 |2020-09-09T09:23:07+00:00September 9th, 2020|Python Video Tutorials|40 Comments

40 Comments

  1. Stories Insight September 9, 2020 at 9:23 am - Reply

    Hold on, That's Weird and My Bad

  2. biswajit tripathy September 9, 2020 at 9:23 am - Reply

    sir why u have taken delf show(self):

  3. Gopala krishna September 9, 2020 at 9:23 am - Reply

    sir how can we type this code in IDLE

  4. Kunj Ganatra September 9, 2020 at 9:23 am - Reply

    What if we have to assign different laptop config to different students????

  5. Boopa Hari September 9, 2020 at 9:23 am - Reply

    I don't have laptop 😂

  6. Brown Man Clothing Co. September 9, 2020 at 9:23 am - Reply

    Lost me mid way through. Slow down your speech. Too fast.

  7. Prasanna Kumar September 9, 2020 at 9:23 am - Reply

    Thank you sir

  8. Nirusan Hariharan September 9, 2020 at 9:23 am - Reply

    4:58 no need to tell we know sir 😉(we trust u well)

  9. Souvik Mallik September 9, 2020 at 9:23 am - Reply

    Why are we calling the inner class show func in the outer func. Can anyone explain?

  10. Harsha basavaraju September 9, 2020 at 9:23 am - Reply

    Great video god bless you and your family !!

  11. Sanat Sinha September 9, 2020 at 9:23 am - Reply

    I have error after writing student(argument) compiler show student() takes no arguments

  12. Ishika Sharma September 9, 2020 at 9:23 am - Reply

    very nice

  13. salvin dsouza September 9, 2020 at 9:23 am - Reply

    0:19 InCePTioN

  14. _ Jawad_ September 9, 2020 at 9:23 am - Reply

    5:05 printing the ids of lap1 and lap2 works but printing the values doesn't work.
    it says:

    __main__.student.laptop object at 0x000001ECC5B07940>

    <__main__.student.laptop object at 0x000001ECC5FDA040>

  15. Amaan Siddiqui September 9, 2020 at 9:23 am - Reply

    One Of The Most Useless Thing On Youtube Is "Ads Of Python Courses" On Telusko Python Series.
    .
    .
    .
    .
    .
    .
    .
    .
    But I still Watch Them So He Can Collect The revenue.

  16. Sreeram Meka September 9, 2020 at 9:23 am - Reply

    I created an Inner Class within an Inner Class, I tried to print using print(s1.courses_available.laptop_brand.show_laptops()) where I created an Object for "Courses" using self.courses_available = self.Courses("Physics", "FALLBA126") inside the "Student" Class and also created another Object self.laptop_brand = self.Laptop("HP", "8GB", "500GB") in the "Courses" class, it is printing the the laptop configurations and also NONE as output since the show_laptops() function is defined below
    def show_laptops(self):

    print(self.brand_name, self.ram_memory, self.hard_drive_space)

    Can someone help why it is printing NONE along with the laptop configuration?

  17. Mayank Pratap September 9, 2020 at 9:23 am - Reply

    had to watch in 0.75x.Slow down brother

  18. mohit bendale September 9, 2020 at 9:23 am - Reply

    print(5:59 to 6:00 + "for me. " + "Thank you !").
    =====================================RESULT======================================
    Ok this works for me. Thank you !

  19. Swati Thakur September 9, 2020 at 9:23 am - Reply

    If we want to change the brand of laptop for student 1 .. How we will do that??

  20. Akritee Pathak 18ST2413 September 9, 2020 at 9:23 am - Reply

    self.lap=self.Laptop()
    what does this mean
    and
    I tried to define inner class like this
    class guests:

    def __init__(self,name,age,brand):

    self.name=name

    self.age=age

    self.br=brand(self,bname,typee)

    class brand:

    def __init__(self,bname,typee):

    self.bname=bname

    self.typee=typee

    def show(self):

    print(f' {self.name} {self.age} {self.bname} { self.type}')

    Please help

  21. ɱᴜᴋɪʟ September 9, 2020 at 9:23 am - Reply

    Btw, who is Jenny sir 🤔😂

  22. Arifa Shaikh September 9, 2020 at 9:23 am - Reply

    At higher level his lectures are getting erratic. He appears to be not prepared in his lectures.

  23. Chethan Prajapati September 9, 2020 at 9:23 am - Reply

    sir u r going very swiftly in this vedio

  24. ASHISH VAMPIRE September 9, 2020 at 9:23 am - Reply

    Got it sir

  25. Debanjan Das September 9, 2020 at 9:23 am - Reply

    Hi sir,
    Ni am Debanjan Das . I have faced a problem regarding inner class and I drives a code that will not nun yet . Can you help me sir????

  26. Tejaswi Gopaladasu September 9, 2020 at 9:23 am - Reply

    cant we use user input inside the class

  27. Sharavana Kumar September 9, 2020 at 9:23 am - Reply

    Great

  28. praveen kamble September 9, 2020 at 9:23 am - Reply

    Just awesome

  29. Mandar Joshi September 9, 2020 at 9:23 am - Reply

    Sir could you explain how u take argument in Student , as Student is class not a method..

  30. Aayush Kumar September 9, 2020 at 9:23 am - Reply

    Confusing

  31. Hruthik Shetty September 9, 2020 at 9:23 am - Reply

    I just wrote an code as it is but error occurred on line self.lap.show(). Here the error occurred so please help me guys 🙏

  32. Tech Shower September 9, 2020 at 9:23 am - Reply

    (Siddesh): Thank you sp much Navin.

  33. Abhimanyu kumar September 9, 2020 at 9:23 am - Reply

    can we make two constructors as we do in other progg. lang. one constrict. take some argument and other constrict takes no argument??
    Please help

  34. Hey, Its really funny September 9, 2020 at 9:23 am - Reply

    Sir, When we create a object of inner class, OUTSIDE outer class and keep some changes in its variable by this object. Then after accessing that variable by the object of inner class created INSIDE outer class, it can not changes its variable's value…… Why??

  35. Srujana pavan Patwari September 9, 2020 at 9:23 am - Reply

    How to change student two laptop information ?? Please anyone can help

  36. mounika gajula September 9, 2020 at 9:23 am - Reply

    It would be better if you have added any exercise at the end of the video

  37. pushpa tayal September 9, 2020 at 9:23 am - Reply

    sir ur tuts are love.. in this lockdown

  38. Nidhisha Shetty September 9, 2020 at 9:23 am - Reply

    Sir, the concept didn't get clear. Still have many doubts. Could you please add one more video for the inner class. plzz

  39. Hamza Ahmed September 9, 2020 at 9:23 am - Reply

    If you want a different example of inner class; here it is
    class geometry:

    def __init__(self):

    self.rectangle = self.rectangle()

    self.triangle = self.triangle()

    class rectangle:

    def __init__(self):

    self.l = int(input("Enter length:"))

    self.b = int(input("Enter breadth:"))

    def show(self):

    area = self.l * self.b

    print("The area of rectangle is:",area)

    class triangle:

    def __init__(self):

    self.h = int(input("Enter height:"))

    self.b = int(input("Enter base:"))

    def show(self):

    area = 0.5 * self.b * self.h

    print("The area of triangle is:",area)

    r1 = geometry.rectangle()

    r1.show()

    t1 = geometry.triangle()

    t1.show()

  40. Tanya AGGARWAL September 9, 2020 at 9:23 am - Reply

    Sir, can you please tell me how we can pass input taken by the user to the object of inner class

Leave A Comment

*