Hi, everybody ! In october I will turn 71 and I will go on learning Python with Idently classes ! Digging in with your amazing classes ! (Brazil - 09/29/2024)
"A class is just a blueprint". I've been using that same line with my students for years, and last semester it dawned on me to ask if any of my students had ever seen a blueprint, or even knew what one is. Not a single hand went up. But it's such a good analogy that now I just take a minute or two to explain what a blueprint is, and carry on.
@@masoudziaie654 Do you happen to live somewhere that hasn't adopted modern building techniques (:-)? Nobody uses actual blueprints anymore. Architectural drawings are printed using large format inkjet printers. Much cheaper, and much more convenient.
@@masoudziaie654 (S)he seemed pretty defensive... Anyway, aren't lots of idioms generally referring to items, practices or jobs that simply don't exist anymore? I agree with "blueprint" being a common word. A similar term would be boilerplate and I doubt people know what that's for exactly. It just seems like a lazy excuse for people's narrow vocabulary but I guess something has to make room for skibidi rizz and other great expressions. (btw, if teacher teaches young kids, blueprint could be a difficult word.)
@thiscommentsdeleted I agree with you. Most expressions used today refer to items that aren't readily used anymore. Nevertheless, they are known by many except Gen Alpha, whose brainrot vocabulary is too vast to encompass a vocabulary with actual class and dignity.
Good foundation to whom need to know Python. Also, do not stop here, learn tips and tricks, NumPy for arrays, Pandas for dealing with data, important libraries like scikit-learn for Machine Learning and frameworks like Flask and Django for web development. Also, do not forget to choose the path you need follow.
I usually do not comment on the RUclips videos but this one really helps me to understand the syntax properly. As I am aware of other programming languages and Just wanted to know the Python working and the syntax. This video is helpful. Thank you 😊
For anyone that has been stuck in the unending loop of learning python, this video is a cornerstone for all. Methods well explained and all the concepts are a bliss to me now.
Love the humor (first with the mis-typing of what should be an easy word) then the comment about being drunk. Difficult subjects go down easier with humor for those of us whom aren't born to think like a developer.
Great work! I am new to python, and I just found a code using ‘self’. I have absolutely no idea what is self refer to.😂 now, I know. It is the way how python usually refer to its class 🙏🏻
This Tutorial Is really good for those who have learnt python before and came back for a summary it will be hard for those who dont have any prior knowledge of python, On the other hand it was a God sent video for me as i have an interview in the next 3 hours so i was looking to clear up some basics. Thank you @Indently
Thank you so much, as I just took the first class in AI with python, I was totally confused, now I feel I have enough knowledge to start my assignment 1
This is the best bite-size video to consume for the concept blueprint of Python. Superb explanation, to the point+concise+precise!!! Godbless you my man!!!
I have written Classes and Objects of classes for years, but I never really understood what I was doing as in "what are these things actually doing?" And for some reason your explanation just set the light bulb off. It makes perfect sense now lol
NIce video as always :) A few additional info for newbees: 1) Constants inside functions are recommended to be defined using the lower case 2) init does not create instance it works with object returned by new (so it's supposed to be an instance) I feel you simplify this intentionally to fit in 20 min :)) 3) dunder variables would be also interesting
I read your comment before he got there, so I was listening. I think he said init sets up an instance, which is true. He did not say create, which is done in the dunder new (of the meta class right?) Obviously it can't create the init because he type hinted it to return None
Thank you for such a easy and accurate explanations. Main reason why I subscribed to you, accurate, normal paced & easy to understand explenations! Love you
This video is great to quickly fill in some gaps for someone, like me, that is new to Python but has experience in other languages (C# and others in my case). There's obviously plenty more to learn, but this short video provided a big boost.
instantly understood better about the structure and the definition of a class, its instances/objects, and the difference between function and method just from the explanation in this video. i even got to know about dunder methods which I can already imagine will be tremendously useful in the future. thank you so much for the video!
Programmers make mistakes. They can be drunk, they can be tired, they can be inattentive. Or they can be all of those things at the same time. (With apologies to Tom Scott.) Great intro video Federico!
It's my understanding that methods are functions that don't return anything. Think of a function like in math class. If you feed the function "addMe(int1, int2)" the values of "5" and "6", a function will solve the problem by returning "11" while a method will simply update some other output variable with the sum or append a list with two new entries "5" and "6".
Man kkkk the part you said "as programers we are bounded to make mistakes, either because we're drunk, yada, yada" make me burst laughing lmao its so relatable
4:41 Traffic lights don’t tell you when it’s safe to drive thru an intersection. If we operated under that assumption then half the town I’m in would get into traffic collisions at least once a week!
I'm spoiled enough to live in a first-world country. Of course continue looking both ways even if it's green if it increases your chances of staying safe. Best of luck!
My python allows the creation of the following: unique_no = {1, 3, 8, 2, 9, 8} Jupyter notebook running a python kernel does not complain about that assignment. The presenter already used double underscores on both sides of init in the class definition. He didn't need to make another example.
Hi , I want to learn python. But there are so many videos and material available on RUclips. It is impossible to follow all. Please guide me from where I should take start . Thanks
I've watched a few of these videos. No one has yet explained to me how creating a variable "name" and entering that instead of "Bob" is more efficient.
You can name your variables anything, it doesn't change the code at all, except readability, badly naming variables makes it much harder to read code and figure out what does what. By naming your variable bob, its just going to make things more confusing, you should think of a variable as a label, so the label would be "name" which holds a name of Bob.
If your asking why he is creating a variable instead of just using Bob in the print function, then this is why. Right now, it doesn't seem to make sense, but that's because the program is only 2 lines of code, in reality, no project that you make will be just 2 lines, it will be 100s, even 1000s, now imagine if you wanted to change bobs name, and you added it to 100s of lines of code, if you didn't use a variable, you would need to read and change so many lines of code, there's bound to be a mistake, and it's not efficient at all, but if you used a variable, all you had to to was go inside the variable "name", change the name, and that's it. It's important to learn these good practices from the beginning, even if you're just learning and your program is just a few lines of code, hope that helps!
I would argue that in example 10, that address isn't even useful for the programmer. However, with regards to constants, could you not overload the assignment operator for a class and prevent assignments from altering the constant? I know that's likely pointless since the user could override the function, but it would at least be one more step you could take which might prevent accidental reassignments. Also, why don't type annotations generate errors? I was playing with 3.11 and I'd swear that they generated errors in function signatures, but 3.14 doesn't, so either they changed that behavior or I was remembering incorrectly, but either way I think they should generate errors within the language interpreter in all cases where you use the wrong type.
It looks like the f in front of a string makes it an interpolated string so e.g. f'Hello {name}' becomes Hello Bob instead of being literally Hello {name}
The ‘f’ is outside of the quotations. When you put ‘f’ before quotations, you’re specifying that it’s a formatted string. This allows you to use placeholders inside of strings for repetitive tasks. So if you had a variable called ‘name’ with a value of ‘Bob’ and then typed “print(f’My name is {name}.’)” you would get “My name is Bob.” Without the ‘f’ before the quotation marks, the placeholder ‘{name}’, will not work. It will just print exactly ‘My name is {name}’ verbatim. Hope this helps
you gotta love the irony in python devs being like "lets make it so people dont have to define the types of their variables any more so i dont have to write the type all the time" and then devs be like "one of the greatest things to use in pyhton are Type annotations" :D
Hi to all, I am a 77 year old part time worker. I have started my coding journey and want all support from others to encourage me. Like my post and comment to me so I can wake up and get the python ball rolling. Thanks to all, bye for now lasses and lads.
I work as a taxi driver, my age is 46. 1 year ago I started to learn Python also learn English and I wonder myself I make great success because sometimes I write more efficiency code than programmers who is in this filed more than 10 years. I started to learn because I had problems my memory and my doctor told me because I am mathematician by my education to try this.
Hi, everybody ! In october I will turn 71 and I will go on learning Python with Idently classes ! Digging in with your amazing classes ! (Brazil - 09/29/2024)
Nicee
Boa, conterrâneo! Nunca é tarde.
@@rytis3005
z
You are cooked 🎉🎉🎉🎉🎉
Live long sir
"A class is just a blueprint". I've been using that same line with my students for years, and last semester it dawned on me to ask if any of my students had ever seen a blueprint, or even knew what one is. Not a single hand went up. But it's such a good analogy that now I just take a minute or two to explain what a blueprint is, and carry on.
Your students don't know what a blueprint is? Do you happen to be in America where basic knowledge is illegal?
@@masoudziaie654 Do you happen to live somewhere that hasn't adopted modern building techniques (:-)? Nobody uses actual blueprints anymore. Architectural drawings are printed using large format inkjet printers. Much cheaper, and much more convenient.
@rdwells no, but everyone and their dog knows what a blueprint is.
@@masoudziaie654 (S)he seemed pretty defensive... Anyway, aren't lots of idioms generally referring to items, practices or jobs that simply don't exist anymore? I agree with "blueprint" being a common word. A similar term would be boilerplate and I doubt people know what that's for exactly. It just seems like a lazy excuse for people's narrow vocabulary but I guess something has to make room for skibidi rizz and other great expressions. (btw, if teacher teaches young kids, blueprint could be a difficult word.)
@thiscommentsdeleted I agree with you. Most expressions used today refer to items that aren't readily used anymore. Nevertheless, they are known by many except Gen Alpha, whose brainrot vocabulary is too vast to encompass a vocabulary with actual class and dignity.
Good foundation to whom need to know Python. Also, do not stop here, learn tips and tricks, NumPy for arrays, Pandas for dealing with data, important libraries like scikit-learn for Machine Learning and frameworks like Flask and Django for web development. Also, do not forget to choose the path you need follow.
"whether it's because we are drunk, tired or just not that attentive..." 3:45 great video, thanks
That's the moment I subscribed 😂
Python is such a nice feeling language to interact with, channels like this are so nice for learning all the little features :)
This is one of the most understandable intros for Python I have seen. Really great, thanks.
I usually do not comment on the RUclips videos but this one really helps me to understand the syntax properly. As I am aware of other programming languages and Just wanted to know the Python working and the syntax. This video is helpful.
Thank you 😊
Your post was created 2 years ago, but it's still helping newcomers.
For anyone that has been stuck in the unending loop of learning python, this video is a cornerstone for all. Methods well explained and all the concepts are a bliss to me now.
i still dont get it haha
I love how you simplify the concept and explain the code quick enough for others to get it. Great video. Thanks!
Love the humor (first with the mis-typing of what should be an easy word) then the comment about being drunk. Difficult subjects go down easier with humor for those of us whom aren't born to think like a developer.
The best introduction I ever seen on RUclips
New sub. Taking python serious this year 🐍
Great work! I am new to python, and I just found a code using ‘self’. I have absolutely no idea what is self refer to.😂 now, I know. It is the way how python usually refer to its class 🙏🏻
This Tutorial Is really good for those who have learnt python before and came back for a summary it will be hard for those who dont have any prior knowledge of python, On the other hand it was a God sent video for me as i have an interview in the next 3 hours so i was looking to clear up some basics. Thank you @Indently
Love it ! Simple and direct to the point. Will save for future reminders.
Thank you so much, as I just took the first class in AI with python, I was totally confused, now I feel I have enough knowledge to start my assignment 1
I chose python as my second coding language after lua, so here i am.
Thank you for providing such a nice tutorial.
Watch and completed many RUclips videos, but this one teaches a lot! Thanks for this video :)
I like how you use every opportunity to pitch python type annotations 🙃
Anyways, great video tho!! as always
Aha I will always slide it in there
I love it too hahaha
I'm amazed onhow you try to make the introductory part so easy to understand
This is the best bite-size video to consume for the concept blueprint of Python. Superb explanation, to the point+concise+precise!!! Godbless you my man!!!
The idea of classes is enlightened. Thank you. 👌
I have written Classes and Objects of classes for years, but I never really understood what I was doing as in "what are these things actually doing?" And for some reason your explanation just set the light bulb off. It makes perfect sense now lol
NIce video as always :) A few additional info for newbees:
1) Constants inside functions are recommended to be defined using the lower case
2) init does not create instance it works with object returned by new (so it's supposed to be an instance) I feel you simplify this intentionally to fit in 20 min :))
3) dunder variables would be also interesting
I read your comment before he got there, so I was listening. I think he said init sets up an instance, which is true. He did not say create, which is done in the dunder new (of the meta class right?) Obviously it can't create the init because he type hinted it to return None
Thank you for such a easy and accurate explanations.
Main reason why I subscribed to you, accurate, normal paced & easy to understand explenations!
Love you
This video is great to quickly fill in some gaps for someone, like me, that is new to Python but has experience in other languages (C# and others in my case). There's obviously plenty more to learn, but this short video provided a big boost.
instantly understood better about the structure and the definition of a class, its instances/objects, and the difference between function and method just from the explanation in this video.
i even got to know about dunder methods which I can already imagine will be tremendously useful in the future.
thank you so much for the video!
Programmers make mistakes. They can be drunk, they can be tired, they can be inattentive. Or they can be all of those things at the same time. (With apologies to Tom Scott.) Great intro video Federico!
Great content, short, sweet and to the point 👍🏽
great, now i have a clear roadmap and also i know what is waiting for me ahead.
Gold content as always.
Thank you so much, helped me plug holes in my knowledge about classes. Have a good day!
He gave an excellent explanation of classes!
Nice and clear. Such a good introduction. Thanks a lot !
Love this, easy to understand
This is great explanation and best for me to start learning Python, Thank you very much for demo.
This was a great video, the way you explain classes was probably the best I’ve watched so far 👌
Glad it was helpful!
Very clear and easy to follow. Examples are great. Thank you.
"whether because we are drunk.." hahaha nice one, lad. Great content! 🙏🏻🍻
Good tip for specifying type right from the getgo
not so bad. Thank you for all the introduction. Did help a lot to understand the logic behind
You're the best Freddie 💯✅
Glad to know that i'll have to dive throught the Python documentation and the roadmap aswell so i can learn all of this... lol. Im scared.
Thank you sir❤ new subscriber and beginner in Python
Splendid. Thx!
Great Video Explanation!!
Very well illustrated! Thanks
Well done! Thank you so much
Clear and unique 👌
It's my understanding that methods are functions that don't return anything. Think of a function like in math class. If you feed the function "addMe(int1, int2)" the values of "5" and "6", a function will solve the problem by returning "11" while a method will simply update some other output variable with the sum or append a list with two new entries "5" and "6".
Wonderful insight
Thank you this has helped me so much
Man kkkk the part you said "as programers we are bounded to make mistakes, either because we're drunk, yada, yada" make me burst laughing lmao its so relatable
Glad to know I’m not the only one programming while drunk lol 🤷♂️
I know right. It was reassuring lol
yeah that one made me chuckle.
Went straight to drunk as the reason for coding errors, hahahaha
In math, we say “don’t drink and derive”
This was such a great video, it's so important
Thank you for spelling 'colour' properly 🙂
Another great video, thank you
Finally understood dunder method
Great video
Outstanding video
This is so intersting!
Really great,thanks
great explanation
6:48 sorry to mention it, but that is pretty easy, ctrl + h to replace the text
THANK YOU VERY MUCH FOR MAKING IT SIMPLE AND GETTING IT ALL TOGETHER 2:22 oh luigi over there, not a fan but there he is
I thought I was the only one who saw it 😅
@@ZenWhispersASMRBy the way,did you learn 😂
3:46 says it all
tell me you learnt JS before python, without telling me you learnt JS before python. but all jokes aside great video
Video was good. You didn't mention f strings when you first used it. Just FYI.
It was a nice review. ;)
Wau very nice❤❤❤
4:41 Traffic lights don’t tell you when it’s safe to drive thru an intersection. If we operated under that assumption then half the town I’m in would get into traffic collisions at least once a week!
I'm spoiled enough to live in a first-world country. Of course continue looking both ways even if it's green if it increases your chances of staying safe. Best of luck!
Hi, I wanna ask you a question: what IDE do you use? thanks a lot
Amazing video !!!
My python allows the creation of the following:
unique_no = {1, 3, 8, 2, 9, 8}
Jupyter notebook running a python kernel does not complain about that assignment.
The presenter already used double underscores on both sides of init in the class definition. He didn't need to make another example.
Eye opening! This is a great intro to these concepts
What does he mean in 8:11 by "print the f string of hello name"?
Thanks!
Hi , I want to learn python. But there are so many videos and material available on RUclips. It is impossible to follow all. Please guide me from where I should take start . Thanks
nice explaination
Cool stuff!
in the last example, 'other' can also be: "other: 'Car'"
Pour ma part j'utilise Pdf24, Qdir, notepad++
Thanks
I will note
I've watched a few of these videos. No one has yet explained to me how creating a variable "name" and entering that instead of "Bob" is more efficient.
You can name your variables anything, it doesn't change the code at all, except readability, badly naming variables makes it much harder to read code and figure out what does what. By naming your variable bob, its just going to make things more confusing, you should think of a variable as a label, so the label would be "name" which holds a name of Bob.
If your asking why he is creating a variable instead of just using Bob in the print function, then this is why.
Right now, it doesn't seem to make sense, but that's because the program is only 2 lines of code, in reality, no project that you make will be just 2 lines, it will be 100s, even 1000s, now imagine if you wanted to change bobs name, and you added it to 100s of lines of code, if you didn't use a variable, you would need to read and change so many lines of code, there's bound to be a mistake, and it's not efficient at all, but if you used a variable, all you had to to was go inside the variable "name", change the name, and that's it. It's important to learn these good practices from the beginning, even if you're just learning and your program is just a few lines of code, hope that helps!
can you make a similar video for c++
i have my exam coming saturday
What compiler / IDE are you using here?
pycharm
I would argue that in example 10, that address isn't even useful for the programmer. However, with regards to constants, could you not overload the assignment operator for a class and prevent assignments from altering the constant? I know that's likely pointless since the user could override the function, but it would at least be one more step you could take which might prevent accidental reassignments. Also, why don't type annotations generate errors? I was playing with 3.11 and I'd swear that they generated errors in function signatures, but 3.14 doesn't, so either they changed that behavior or I was remembering incorrectly, but either way I think they should generate errors within the language interpreter in all cases where you use the wrong type.
Can you explain’OOPs’
13:20 Why is f not printed though? Can someone kindly explain?
It looks like the f in front of a string makes it an interpolated string so e.g. f'Hello {name}' becomes Hello Bob instead of being literally Hello {name}
The ‘f’ is outside of the quotations. When you put ‘f’ before quotations, you’re specifying that it’s a formatted string. This allows you to use placeholders inside of strings for repetitive tasks. So if you had a variable called ‘name’ with a value of ‘Bob’ and then typed “print(f’My name is {name}.’)” you would get “My name is Bob.” Without the ‘f’ before the quotation marks, the placeholder ‘{name}’, will not work. It will just print exactly ‘My name is {name}’ verbatim. Hope this helps
you gotta love the irony in python devs being like "lets make it so people dont have to define the types of their variables any more so i dont have to write the type all the time" and then devs be like "one of the greatest things to use in pyhton are Type annotations" :D
It being optional is a beautiful thing, especially for those who are in a hurry writing quick scripts :)
"Wheter we are drunk, tired or not that attentive".... sounds about right.
What compiler are you using becasue when i download python it takes me to the one with >>>
and i cant run my codes
pycharm
Please, whats the Python version in this codes?
which code editor is this?
Pycharm
suggestion: next time, incorporate recursion.
what software is that?
PyCharm
Hi to all, I am a 77 year old part time worker. I have started my coding journey and want all support from others to encourage me. Like my post and comment to me so I can wake up and get the python ball rolling. Thanks to all, bye for now lasses and lads.
Just do it if you’re doing it and never mind asking for likes on a comment
I work as a taxi driver, my age is 46. 1 year ago I started to learn Python also learn English and I wonder myself I make great success because sometimes I write more efficiency code than programmers who is in this filed more than 10 years. I started to learn because I had problems my memory and my doctor told me because I am mathematician by my education to try this.