Тёмный

Self and __init__() method in Python | Python Tutorials for Beginners  

Jenny's Lectures CS IT
Подписаться 1,7 млн
Просмотров 69 тыс.
50% 1

💥💥It's a never before opportunity 💥💥
Dear Learners
Unacademy is back with Combat and this time it is Ultra Combat. Yes you heard it right.
Get chance to get up to 90% scholarship* and rewards such as Macbook, Dell Laptop, Samsung phones and many more
Syllabus will be Technical, General aptitude and Engineering Maths.
So do not miss this opportunity and Enroll today. Use my code JKL10 to enroll for free
ME, CH: unacademy.com/combat/gate-ese...
CE: unacademy.com/combat/gate-ese...
EE, EC: unacademy.com/combat/gate-ese...
CS: unacademy.com/combat/gate-cs-...
********************************************
In this lecture we will learn:
- How to add Attributes in a Class ?
- What is --init--(self) method (Constructor)?
- What is constructor?
- What is use of self keyword?
Best Python Tutorials for Beginners: • Python - Basic to Advance
*********************************************
Connect & Contact Me:
Jenny's Lectures HINDI: / @jennyslectureshindi
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/profile/Jayanti...
Instagram: / jayantikhatrilamba
Twitter: / khatrijenny
*******************************************
More Playlists:
Programming in C Tutorials: • Programming in C
Printing Pattern in C: • Printing Pattern Progr...
C++ Tutorials for beginners: • Lec 1: How to Install ...
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Design and Analysis of Algorithms(DAA): • Design and Analysis of...
Dynamic Programming: • Dynamic Programming
Operating Systems tutorials: // • Operating Systems
DBMS Tutorials: • DBMS (Database Managem...
#oop #objectorientedprogramming #python #pythonforbeginners #jennyslectures

Опубликовано:

 

20 июл 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 60   
@Chris-vt6nl
@Chris-vt6nl 4 месяца назад
There are several teachers who complicate even simple topics and make it hard to learn along with personally insulting students not able to understand programming,crippling their confidence saying they will never be able to understand programming😡but a teacher like you makes even a very hard topic easy to understand which is what great teaching is all about. In my school and college wish there was a teacher like you if it was so I'd have been in a wonderful position in software industry!!plz upload a video explaining decorators,generators,metaclasses,concurrency and parallelism
@souritranandy6270
@souritranandy6270 4 месяца назад
I have searched a lot of contents to understand OOPS in python....but i was not able to understand their explanations....but today I am getting all the concepts.... mam you are great......your explanation is crystal clear...Thank you so much mam
@shaileshbhat93
@shaileshbhat93 Год назад
you are making me to love python programming maam.. Thanks for your amazing teaching maam
@tvsekhar6788
@tvsekhar6788 5 месяцев назад
"Your Python videos have been a game changer for my learning journey. Thanks for making complex topics accessible and enjoyable!"
@rajeshreddy7873
@rajeshreddy7873 Год назад
class CarDesign: pass cardesign_1=CarDesign() cardesign_2=CarDesign() print(type(cardesign_1)) print(type(cardesign_2))
@flipdruid
@flipdruid 3 месяца назад
Thank you, I keep learning and learning. Very clear explanation and understandable.
@JuniorVasquez1
@JuniorVasquez1 9 месяцев назад
Thanks alot :)! alot easier to understand compared to other regarding this topic.
@tamerlanaskarov5538
@tamerlanaskarov5538 2 месяца назад
Appreciate your work! Great Explanation!
@saisuba2698
@saisuba2698 6 месяцев назад
I really really loved ur video because of ur examples ❤....i have zero knowledge in program but i switch my job in IT ... that's why i studying python now......in py everything is an object but class?u said one ex idly maker❤..... Thanks alottttt mam❤❤
@abhilash0122
@abhilash0122 4 месяца назад
self is not a keyword. a self is an implicit object that contains the address of the current object.
@VivekChoudhary-dl2ji
@VivekChoudhary-dl2ji 10 месяцев назад
Amazing Video.
@sarveshpawar4286
@sarveshpawar4286 Год назад
Hello mam it's a highly request please make a video in embedded system how it works , where to use how to master and what are scopes for it how to adapt it please make video on it 😊
@AnandSingh-mi3sv
@AnandSingh-mi3sv 5 месяцев назад
Your classes have crystal clear and simple explanation which is highly appreciated... Just a small correction (not at all to demotivate) "self" is not keyword, instead of self we can use any word, but users are recommended to use "self" since it's common most spoken term in python dev community.
@jjjmemes420
@jjjmemes420 Месяц назад
Bro how u know this ???
@tvsekhar6788
@tvsekhar6788 5 месяцев назад
Thanks!
@alokdubey4085
@alokdubey4085 6 месяцев назад
I saw numerous videos to understand __init__ method and self, then came across PyLenin videos, got some idea and then finally saw this video and it has become crystal clear now, thank you so much for this brilliant video, can you tell which IDE you are using, is it IntelliJ. I use Jupyter Notebook but there I don't get the hint and color differentiation.
@user_shivshakti_1111
@user_shivshakti_1111 10 месяцев назад
Thank you Mam.
@vaibhavpatharkar6794
@vaibhavpatharkar6794 Год назад
13:02 Madamji maan gaye , bahut hi badhiya sikhaya hai aaapne
@futureboy8034
@futureboy8034 Год назад
Love from my side for giving beautiful and best contain 💌
@johnkamau9580
@johnkamau9580 Месяц назад
Your voice usually gets me 🥺 when are you visiting this great country kenya😍
@akulakalyanram4288
@akulakalyanram4288 4 месяца назад
Very good content ❤
@vaibhavpatharkar6794
@vaibhavpatharkar6794 Год назад
Thaank youji for this lecture. Pl take sql also. Shree raaam be always be with you.
@shayaanshaikh104
@shayaanshaikh104 Год назад
hello mam.after completing the program plz zoom out screen,so we can note down properly
@GokulBG-pu3yu
@GokulBG-pu3yu Год назад
Hello mam do you have any idea about react or angular tutorial.
@naveen_divine
@naveen_divine Год назад
😍💗
@thanujabantanur5113
@thanujabantanur5113 Год назад
Mam l need about standard deviation and varience theory information plz one help
@rahulatal1816
@rahulatal1816 2 месяца назад
Madam pls guide for major difference between __new__ and __init__ If __init__ is also a auto-constructor and initializer then why we use __new__ What is the benefit of using __new__ and what problem we face if we Do not use __new__
@publicknowledge4241
@publicknowledge4241 7 месяцев назад
Ma'am thank you so much...I have search alots on RU-vid but you explain in very easy way...❤❤
@user-bz1rb4kz2i
@user-bz1rb4kz2i Год назад
Mam do on java classes for degree pls mam
@boinidipushpalatha5750
@boinidipushpalatha5750 11 месяцев назад
How many more videos it take to complete this course?mam
@kashifkhan1420
@kashifkhan1420 Год назад
when will be the course end how many more video
@kashifkhan1420
@kashifkhan1420 Год назад
how many more video of python you have more
@darktv777
@darktv777 10 месяцев назад
You are looking so cool ao i reads with you ❤
@sravankumar1767
@sravankumar1767 Год назад
Nice explanation 👌 👍 👏, and you are So gorgeous 😍 ❤
@tushantmishra1482
@tushantmishra1482 Год назад
its like structure in c right?
@irannaroyalroy
@irannaroyalroy 10 месяцев назад
Super teaching all the way from Karnataka
@edutechz
@edutechz Год назад
Mam i love you❤️ Cool as a teacher ❤
@shashankmishra6129
@shashankmishra6129 Год назад
Numpy bta dijiye please?next video me
@reverbism
@reverbism Год назад
If you are watching this video and even you are not interested in Python then hit that like button. we are same
@anurajyendhe5981
@anurajyendhe5981 Год назад
Hi ma'am How to installation Python in vs code please make videos on this topic
@dd0n396
@dd0n396 Год назад
You dont install python on vscode. If python is in your path then jt should just work
@shortx11
@shortx11 6 месяцев назад
#1 class carDesign: pass obj_1 = Cardesign() boj_2 = CarDesign() print(type(obj_1)) print(type(obj_2))
@avnish6492
@avnish6492 11 месяцев назад
literally ,you are just awesome ..MAM the way you teach, no one gonna be yeah actually i find some error in your english but its ok agar madam esi ho toh sab chalega
@p1nk2002
@p1nk2002 Год назад
1st viewer
@nisharaval2800
@nisharaval2800 Год назад
Link for exams
@shayaanshaikh104
@shayaanshaikh104 Год назад
hello...your voice is very low,in video.
@priyanshu_khristi
@priyanshu_khristi Год назад
Hello ma'am can you teach in hindi?
@srikanthreddy1171
@srikanthreddy1171 Год назад
Hi you look stunning I mean in a nice way
@chethankh6652
@chethankh6652 11 месяцев назад
😅
@vamsivamsi7606
@vamsivamsi7606 Год назад
Mam notes
@dhokamemes
@dhokamemes 3 месяца назад
mam biothec walo ko mt bhula kro.. hum bhi seekhne aate hein
@ronterambabu8153
@ronterambabu8153 8 месяцев назад
00:02 Discussing the __init__() method and adding attributes to a class in Python. 02:10 Classes in Python are user-defined data types with a blueprint to create objects 04:17 Using classes and __init__ method to store attributes for different instructors 06:38 Constructor in Python initializes data members when an object is created 08:47 The __init__() method initializes object attributes in Python. 11:05 Understanding the self and __init__() method in Python 13:31 The self and __init__() method in Python is used to initialize objects and bind attributes to arguments. 15:45 Using default parameter values in Python for class attributes Crafted by Merlin AI.
@VIC_KY07_
@VIC_KY07_ Год назад
Hi
@azarudeena6467
@azarudeena6467 4 месяца назад
class CarDesign: def __init__(self,name,color,model): self.name = name self.color = color self.model = model car1 = CarDesign("Thar","Black","1500CC") car2 = CarDesign("Fortuner","white","3000cc")
@SaiGamingff09
@SaiGamingff09 2 месяца назад
class Instructor: def __init__(self,name,anime): self.name=name self.anime=anime self.followers=0 Instructor_1=Instructor("luffy",'OnePieece') Instructor_2=Instructor("Naruto",'Naruto') Instructor_3=Instructor("Tanjiro",'DemonSlayer') Instructor_4=Instructor("Goku",'DragonBalz') list=[Instructor_1,Instructor_2,Instructor_3,Instructor_4] for data in list: print(data.name, ' from' ,data.anime)
@enejivik
@enejivik 7 месяцев назад
class Instructor: def __init__(self, instructor_name, address): self.name = instructor_name self.address = address Instructor1=Instructor("victor", "market road") Instructor2=Instructor("David", "hostel writing code") print("Address: {}".format(Instructor1.address)) print("Name: {}".format(Instructor1.name)) print("Address: {}".format(Instructor2.address)) print("name: {}".format(Instructor2.name))
@vignesh.v.aregno5251
@vignesh.v.aregno5251 6 месяцев назад
Hi Did you explain the use of {}. format ()
@yagnavalki3376
@yagnavalki3376 9 дней назад
class Instructor: def __ init __(self ,instructor _name, address): self .name =instructor _name self .address =address self .followers =0 Instructor_1=Instructor("Jenny" ,"Gurgaon") print("The first Instructor is:") print(Instructor_1.name) print(Instructor_1.address) print(Instructor_1.followers) Instructor_2=Instructor("Yagnavalki" ,"Hyderabad") print("The Second Instructor is:") print(Instructor_2.name ,'from',Instructor_2.address ,'with followers as ',Instructor_2.followers) Output:- The first Instructor is: Jenny Gurgaon 0 The Second Instructor is: Yagnavalki from Hyderabad with followers as 0
Далее
What is `self` in Python?
4:15
Просмотров 46 тыс.
5 Useful F-String Tricks In Python
10:02
Просмотров 288 тыс.
Please Master These 10 Python Functions…
22:17
Просмотров 113 тыс.
What does Python's __init__ method do?
6:56
Просмотров 32 тыс.