Can We Have Multiple Constructors In Python?

preview_player
Показать описание
Please join as a member in my channel to get additional benefits like materials in Data Science, live streaming for Members and many more

Please do subscribe my other channel too
Connect with me here:
Рекомендации по теме
Комментарии
Автор

Instead of cheking multiple if conditions, can't we just use kwargs as shown below?
class Animal:
def __init__(self, name, species, sound=None, age=None):
self.name=name
self.species=species
self.age= age
self.sound=sound

praneshs
Автор

Saludos desde El Salvador, tu vídeo explica bien genial gracias por tu aporte en serio

christianalexandergaldamez
Автор

What is best book to learn maths behind machine Learning? How do i learn to derive the whole algorithm?

convolutionalnn
Автор

Sir please add more big data projects for one neuron subscribers or at least make the big data projects from the job guaranteed program available for us please sir! 😢 Also some videos on feature engineering and creating data pipelines videos will be really helpful please Krish look into it otherwise really happy with the one neuron lifetime subscription

abc_noob
Автор

I guessed it correctly about the concept about of override and happy about that i understand the concept very well. Thank you Krish sir. and Sudanshu Sir.

saurabhkedar
Автор

For learning machine and AI, python and its libraries like sckit, tensorflow, pandas.. etc is enough or math is compulsory
Please tell us...

BatMan-mktf
Автор

thank you Krish sir, for clearing the doubts.

shubhamnandalwar
Автор

@krish : Will it not lead to constructor or method overloading if we use multiple constructors..?

akshaymutalikdesai
Автор

Please explain and implement with some example about multi threading and multi processing on ml project

saivivek
Автор

but if i need a constructor(species, sound, age) for example?

ivansalguero
Автор

thanks.i have my tcs ninja interview tomorrow

datascience
Автор

Sir please continue the NLP communiy session on youtube

deepakprasad
Автор

if we change the order, it will be wrong right??

datascience
Автор

Kya data analytics work ke liye i3 processor, 8gb ram, 256 ssd laptop hang krega?

rajnimittal
Автор

Sir can u make a video on how to use **kwargs

vishnuvardhan
Автор

Please add a space in both side of the equal signs. And after the comma also. It's painful to watch you writing like this. BTW, Thank you for the video.

kcvinu
Автор

Sir iam economics background student....i want to do data analysis please can i contact u.

manuk
Автор

sir i need ur help plz help me for this
recently i join course from simplilearn course name Data scientist Job guartee programe but now i am confused tht this course is real or fruad i will get 100%job or not plz sir i want suggestion from you

vijaykumbhar
Автор

What are you talking? You don't even know the basics. *args, is for variable number of arguments. How can you even call it multiple constructors?

datafiasco
join shbcf.ru