#54 Python Tutorial for Beginners | Inner class

preview_player
Показать описание
Python Tutorial to learn Python programming with examples

Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

For More Queries WhatsApp or Call on : +919008963671

Editing Monitors :

Subscribe to our other channel:
Telusko Hindi :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20
Рекомендации по теме
Комментарии
Автор

Holy crap these are amazing quality and very well produced. The audio was good, the camera nice, It was well lit, and the little animated graphics were a nice touch and of good quality as well. This goes far beyond any typical Youtube tutorial on these kinds of topics.
Thank you so much for paying attention to these kinds of details. They mean so much more than most people know. Thank you so much.

Decco
Автор

jeeny mam and navin sir in example is next level

saihari
Автор

SIr you are my doing programming just because of your videos.After watching all the videos of you on python i just fall in love with python simple but so know Java(learnt by watching all of your videos and some from Herbert Schildt), C, C++, PHP, JavaScript but there is no language like keep on making more and more videos on bless you :):)

PhoenixRisingFromAshes
Автор

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()

ahmed_hamza
Автор

print(5:59 to 6:00 + "for me. " + "Thank you !").

Ok this works for me. Thank you !

mohitbendale
Автор

class teacher:
def teaching(self):
return 'Teacher is teaching'
class student:
def studying(self):
return 'Students are studying'

x1=teacher()
print(x1.teaching())
x2=teacher.student()
print(x2.studying())

moshahid
Автор

Best video tutorials I've come across yet. Mucho gracias.

Daniel-omwm
Автор

sir ur tuts are love.. in this lockdown

pushpatayal
Автор

thanks for your hard work for us.bcos of ur effort we able to learn python

soniyachauhan
Автор

"Thank you so much for your clear and simple explanations! Python can be a bit overwhelming at times, but you make it so much easier to understand. Your teaching style is amazing, and I really appreciate all the effort you put into your videos. Keep up the great work!"

zakiasmaa
Автор

sir u r going very swiftly in this vedio

BabyGiggles
Автор

Thanks a lot For Python Tutorial. The way you explain (practical + theoretical) is remarkable. when you explain i can visualize how coding is working. I have one request sir can you please make a video in decorator and generator.?

AbhishekKumar-hgjv
Автор

very good tutorial, however if OOP is concerned i watched other tutorials on you tube by Corey Schafer for better understanding of the concept.
Moreover, i found your way to create object for the subclass inside the parent class (as attribute)quite unfamiliar!.
Thank you for tutorial, very helpful, THANK YOU

fireworks
Автор

I am wondering how much clarity that you have in your concept, otherwise we can't get this much stuff. As a lecturer I can see your work behind this video

liveinthemoment
Автор

I've seriously become better at coding as I use these tutorial to shift from Java to Python!

Alberta_Farmer
Автор

Sir please provide video about python programs & projects.

abhisheksethi.
Автор

Hi bro, sometimes inside init you use variables like names, roll no along with self but some times you don't use . Please make me understand this concept.

dhrubajyotiray
Автор

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

__main__.student.laptop object at
<__main__.student.laptop object at

_jawad_
Автор

Hi @Naveen: when you had to create lap object using laptop class. why you wrote if as self.lap = self.laptop(). why we can't create lap object using, self.lap = laptop as you are doing to create a student object s1

bhanusachdeva
Автор

really a great great way teaching these type of methods

Apollo-KS
join shbcf.ru