

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
Hold on, That's Weird and My Bad
sir why u have taken delf show(self):
sir how can we type this code in IDLE
What if we have to assign different laptop config to different students????
I don't have laptop 😂
Lost me mid way through. Slow down your speech. Too fast.
Thank you sir
4:58 no need to tell we know sir 😉(we trust u well)
Why are we calling the inner class show func in the outer func. Can anyone explain?
Great video god bless you and your family !!
I have error after writing student(argument) compiler show student() takes no arguments
very nice
0:19 InCePTioN
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>
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.
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?
had to watch in 0.75x.Slow down brother
print(5:59 to 6:00 + "for me. " + "Thank you !").
=====================================RESULT======================================
Ok this works for me. Thank you !
If we want to change the brand of laptop for student 1 .. How we will do that??
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
Btw, who is Jenny sir 🤔😂
At higher level his lectures are getting erratic. He appears to be not prepared in his lectures.
sir u r going very swiftly in this vedio
Got it sir
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????
cant we use user input inside the class
Great
Just awesome
Sir could you explain how u take argument in Student , as Student is class not a method..
Confusing
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 🙏
(Siddesh): Thank you sp much Navin.
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
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??
How to change student two laptop information ?? Please anyone can help
It would be better if you have added any exercise at the end of the video
sir ur tuts are love.. in this lockdown
Sir, the concept didn't get clear. Still have many doubts. Could you please add one more video for the inner class. plzz
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()
Sir, can you please tell me how we can pass input taken by the user to the object of inner class