Комментарии:
Purane videos me Jayda topics cover kre hai abhi wale.python course me nhi kiye cover
ОтветитьWow thank you sir
ОтветитьThanks Harry Bhai ❤
ОтветитьYou are amazing at explaining the concepts. Much love to you.🤩
Ответитьif you havent learned JS constructor function you cant understand this fully , i was same , but now i know what is object its noting but a dictionary (called object in JS , same key value pair ) , when you try to create a object (or instance) in python this create self={ } a empty dictionary then we apply key value pair => you write in dot notation remember self.key=value , and finally the constructor function (in Python _init__() ) return the dictionary (object) to the variable where you called the __init_ ,
IN JS
same things happens uptill now i havent got any class concept in JS but , to create an object in JS we use new operator and this.key=value ....
Sir my code is not work even i checked it 4 to 5 times it completely same but not running may you help me to resolve it
Ответитьwhat is 'f' that you is written after 'return'
Ответитьreturn f gives error. kindly explain.
ОтветитьBrother attribute error
ОтветитьYour way of teaching is unbelievable and so much easy to understand. Thanks for spreading you teaching
ОтветитьThanks
Ответитьbhai mujhe kuch bhi samajh nhi aata bhir bhi mai aapka video dekhta hu
Ответитьbhai app ache sarjhate ho but sub ek me hi lipa pota kr dete ho
ОтветитьBro i have a issue regarding this.
Type error: employee() takes no arguments
o m maan what a great teaching method
ОтветитьBhai placement hote hi milne aaunga, pata nhi kaha rehte ho but dhund lunga, Thank you man., thank you so much.
ОтветитьI applied f strings but I was not able to see () in place of this I saw green colour normal bracket like we put in a normal quote..anyone help me in this
ОтветитьSaw 5 videos on the same topic before this. But got clarity only after viewing your video Harry. Great explanation bro. Keep up the good work.
ОтветитьBro I have a problem I'll make a python program and he running without any error but output not showing in paydroid3 and jupyter notebook what will I do???????
ОтветитьMost object-oriented programming languages such as Java, C++, C#..etc have the concept of a constructor, a special method that creates and initializes the object when it is created.
Python is a little different it has a constructor and an initializer. The constructor function is rarely used unless you're doing something exotic.
The constructor function in python is called _new_ and _init_ is the initializer function.
Wish you guys the best!
instead of constructor what if we can just declare a variable
class Employee:
no_of_leaves =9
name =[]
salary =[]
In one of my codes I wanted to create list or dicts instead of variables, So I used this approach. What about using such approach with Variables
Sir notes kaise milenge
ОтветитьAwesome explanation bhaiya 😘😘🙏🏻🙏🏻
Ответитьenjoyingb this playlist
Ответитьclass student:
def __init__(self,agame,aphone,ahero):
self.game=agame
self.phone=aphone
self.hero=ahero
harry = student("pugb","mi",1)
print(harry.phone)
Great explanation👌👌
Ответитьnot speaking english.. take english video down immediately to stop confusion thanks.
Ответитьclass gamers:
pass
def alldetails(self):
return f"Winner is {self.winner_of_CSGO}, with a prizepool of {self.prizepool}, and a trophy named {self.trophy}"
mahesh = gamers()
atharva = gamers()
rohit = gamers()
mahesh.winner_of_CSGO = "Mahesh securing 1st prize"
mahesh.prizepool = 5000000
mahesh.trophy = " [2022 Series league of CSGO]"
atharva.winner_of_CSGO = "Atharva securing 3rd prize "
atharva.prizepool = 200000
atharva.trophy = " [2021 Series league of CSGO]"
rohit.winner_of_CSGO = " Rohit securing 3rd prize "
rohit.prizepool = 105000
rohit.trophy = " [2020 series league of CSGO]"
print(rohit.alldetails())
Wah harry vhai iyee kiya bat kahii hame to samaz ya gaya.... 😂
Ответитьspeak english you trolls
Ответитьwhy did he wrote that "f" after return ?
return f"Name is {self.name}. Salary is {self.salary} and role is {self.role}"
Honestly, you just saved me here. I spent 2 days watching videos on repeat and was still getting nowhere. You cleared it out with so ease. Thanks man!!
Ответитьgreat video, it helped a lot thankyou :)
ОтветитьBro, kya kya karty ho waqt barbad karny sy bachnaay k liye aur bookmark aur reminders k ilawa??
Ответитьgreat video
Ответитьthanks harry bhai
Ответить