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

  Рет қаралды 68,152

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Жыл бұрын

💥💥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

Пікірлер: 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!"
@tamerlanaskarov5538
@tamerlanaskarov5538 2 ай бұрын
Appreciate your work! Great Explanation!
@JuniorVasquez1
@JuniorVasquez1 9 ай бұрын
Thanks alot :)! alot easier to understand compared to other regarding this topic.
@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.
@flipdruid
@flipdruid 3 ай бұрын
Thank you, I keep learning and learning. Very clear explanation and understandable.
@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 😊
@rajeshreddy7873
@rajeshreddy7873 Жыл бұрын
class CarDesign: pass cardesign_1=CarDesign() cardesign_2=CarDesign() print(type(cardesign_1)) print(type(cardesign_2))
@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❤❤
@VivekChoudhary-dl2ji
@VivekChoudhary-dl2ji 10 ай бұрын
Amazing Video.
@abhilash0122
@abhilash0122 4 ай бұрын
self is not a keyword. a self is an implicit object that contains the address of the current object.
@tvsekhar6788
@tvsekhar6788 5 ай бұрын
Thanks!
@user_shivshakti_1111
@user_shivshakti_1111 10 ай бұрын
Thank you Mam.
@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 28 күн бұрын
Bro how u know this ???
@akulakalyanram4288
@akulakalyanram4288 4 ай бұрын
Very good content ❤
@vaibhavpatharkar6794
@vaibhavpatharkar6794 Жыл бұрын
Thaank youji for this lecture. Pl take sql also. Shree raaam be always be with you.
@johnkamau9580
@johnkamau9580 Ай бұрын
Your voice usually gets me 🥺 when are you visiting this great country kenya😍
@futureboy8034
@futureboy8034 Жыл бұрын
Love from my side for giving beautiful and best contain 💌
@vaibhavpatharkar6794
@vaibhavpatharkar6794 Жыл бұрын
13:02 Madamji maan gaye , bahut hi badhiya sikhaya hai aaapne
@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.
@thanujabantanur5113
@thanujabantanur5113 Жыл бұрын
Mam l need about standard deviation and varience theory information plz one help
@user-bz1rb4kz2i
@user-bz1rb4kz2i Жыл бұрын
Mam do on java classes for degree pls mam
@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__
@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
@tushantmishra1482
@tushantmishra1482 Жыл бұрын
its like structure in c right?
@darktv777
@darktv777 9 ай бұрын
You are looking so cool ao i reads with you ❤
@naveen_divine
@naveen_divine Жыл бұрын
😍💗
@publicknowledge4241
@publicknowledge4241 7 ай бұрын
Ma'am thank you so much...I have search alots on KZbin but you explain in very easy way...❤❤
@sravankumar1767
@sravankumar1767 Жыл бұрын
Nice explanation 👌 👍 👏, and you are So gorgeous 😍 ❤
@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
@shortx11
@shortx11 6 ай бұрын
#1 class carDesign: pass obj_1 = Cardesign() boj_2 = CarDesign() print(type(obj_1)) print(type(obj_2))
@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
@reverbism
@reverbism Жыл бұрын
If you are watching this video and even you are not interested in Python then hit that like button. we are same
@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.
@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
@vamsivamsi7606
@vamsivamsi7606 Жыл бұрын
Mam notes
@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")
@shayaanshaikh104
@shayaanshaikh104 Жыл бұрын
hello...your voice is very low,in video.
@dhokamemes
@dhokamemes 3 ай бұрын
mam biothec walo ko mt bhula kro.. hum bhi seekhne aate hein
@priyanshu_khristi
@priyanshu_khristi Жыл бұрын
Hello ma'am can you teach in hindi?
@nisharaval2800
@nisharaval2800 Жыл бұрын
Link for exams
@srikanthreddy1171
@srikanthreddy1171 Жыл бұрын
Hi you look stunning I mean in a nice way
@chethankh6652
@chethankh6652 11 ай бұрын
😅
@VIC_KY07_
@VIC_KY07_ Жыл бұрын
Hi
@p1nk2002
@p1nk2002 Жыл бұрын
1st viewer
@SaiGamingff09
@SaiGamingff09 Ай бұрын
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 5 күн бұрын
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
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 804 М.
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 24 МЛН
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 21 МЛН
Summer shower by Secret Vlog
00:17
Secret Vlog
Рет қаралды 13 МЛН
What does Python's __init__ method do?
6:56
Python and Pandas with Reuven Lerner
Рет қаралды 32 М.
015 - INTRODUCTION TO FUNCTIONS IN PYTHON
21:01
Mersthub Mentors
Рет қаралды 6 М.
Inheritance in Python | Python Tutorials for Beginners #lec89
27:20
Jenny's Lectures CS IT
Рет қаралды 75 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 287 М.
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 108 М.
Still confused about "self" in Python? Then watch this!
2:23
Python for Everyone
Рет қаралды 101 М.
Classes and Objects in Python | OOP in Python | Python for Beginners #lec85
17:06
Jenny's Lectures CS IT
Рет қаралды 97 М.
What is `self` in Python?
4:15
AiCore
Рет қаралды 46 М.
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН