Python3 Intermediate Tutorial 2 - Classes

preview_player
Показать описание
This is a tutorial that covers what a class is, how to make one in python 3 and talks about attributes and methods. . All Links and Slides will be in the description. Subscribe for more cool stuff!

If you like what you see be sure to subscribe and thumbs up!
Рекомендации по теме
Комментарии
Автор

Finally understand how they work. Thank you so much.

cringefest
Автор

Am going to start OOP next semester, wanted to learn about classes and I found your tutorials to be the best resource for it. Thank you.

MahaKhanMK
Автор

starting with the intermediate series today. thanks Draps

EDreyer
Автор

Be aware that `me.number = 1337` does not change the MyClass class attribute `A.number` but rather creates an new attribute on the `me` instance/object (which shadows the MyClass class attribute).

donaldslowik
Автор

what would define when cases are better to use OOP vs procedural approaches?

Zzznmop
Автор

I think you gave a concise explanation as I understood your example, though I don't understand how this is different than just assigning variable names or how it pertains to more real world examples.

gianlucapaul
Автор

why do all the .numbers have str before it i thought it would be int

DE
Автор

Not sure I followed you in the If Statement with the underscores.
if __name__ == '__main__':

Google search and StackOverflow suggest to me this line refers to special built-in variables. So, out of curiosity, I tried running the program without this If Statement and just going straight to Main() and it still worked.

As a beginner, should I just consider this some kind of error catching convention? Or maybe this will be better explained when I follow the remaining Intermediate videos.


Otherwise, I really like how this is all presented and especially the code files. I'm taking programming classes and thought I'd trying using Python to get well grounded in fundamentals during my winter break.

danfalls
Автор

How to run IDE in terminal like on video?

davvoprod.
Автор

why is there str for an interger output??

lucioiams
Автор

Finaly i understud classes and how to actualy use them and what are they :D you realy know to give the knowlage :D

maksimilijanandric
Автор

Sir, where are the solution of the creating a class named friends????

vaibhavvardhantyagi
Автор

sir I did not understand why you did not type<<me.name>> in a strand <<str(me.number)>> why did not you type this like me.name form

srikantnanda
Автор

All attributes are public?
Look, though I am working in C++ for 20 years now, I am a newbie in Python, so perhaps I am missing something deep, but I saw guys use a double underscore ("__") prefix for private and a single underscore('_') for protected, and I tested it and it works, so what do you mean by all attributes are public? Thanks

seventyfive
Автор

if __name__ = '__main__':
Main()
:wq


after this i will unable to run my python programme help me.

leegalguid
Автор

sir I have referred  many coding sites but I found that I can learn coding from your channel only and I find all your examples very interesting sir I have a question for you do you hack computersif you can you tell me which os you are using for itI like backtrack5 r3 are your codes working even there

srikantnanda
Автор

sir how can I install vim on Ubuntu sir I have installed Ubuntu via wubi but  I don't have the root passwordplease help

srikantnanda
Автор

nice tutorial
Regarding the challenge

SOLVED BY TUT4 ->(Can you please explain or link how self thingy works? I mean you have to variables on the add function (self, name) but you only use one.) 
Also where can I find the finished challenge code?

MrIkariaman
Автор

the mediafire links are not working for this tutorial @draps tv . It says mediafire refused to connect. Please make them available as soon as possible. Thanks again. Great work.

sushantsingh
Автор

Why doesn't isinstance work with None?

arpitjain