Added: 2 years ago
From: thenewboston
Views: 33,937
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (77)

Sign In or Sign Up now to post a comment!
  • Base1 func Is Accesing?????? >>> class Base: def func(self): print "Base :: func" def func1(self): print "Base :: func1" >>> class Base1: def func(self): print "Base1 :: func" #Base 1 Func is not accessing >>> class Drive(Base,Base1): def func2(self): print "Drive :: func" self.func() >>> d = Drive() >>> d.func() Base :: func >>> d.func2() Drive :: func Base :: func
  • hi

  • bucky, I'm new to python and I learned a lot from your tutorial.. I've experience in Java and C++ and python gonnah be my 3rd language.. and you did a great job man, go buck! ops.. i'm from ohio..

  • Everything about this language is easier than any other language :D

  • am i the only one who does not find the new boston to be the funiest guy on youtube??

  • @147humblenerd Yes. xD

  • Bucky, i am Noname. I need help writing a special program, it wont operate properly and I have checked and double checked my code. It may seem minuscule to an expert such as yourself, however your assistance would be greatly appreciated. Contact me via email: tmarrow@live.com. please be swift.

  • Awesome video! 

  • I think that exercises doing something with this knowledge would be really helpful!

  • "W T F is this get out of the way hoss" haha i love you bucky

  • Thanks for your videos, you just make my life a little easier =)

    btw u have a sexy voice ;)

  • I have a huge doubt now,

    what if for examle in dad class we have a var2 and in mom we have a var2 also how would i call the var2 of mom and not dad? also how i change the var2 from mom?

  • Can you have two Dad classes, Dad1 and Dad2 ?

  • and what is this whole class, object thing good for ?

  • @wonderbug10 Its called object oriented programming and basically the idea is to manipulate objects to get an end result. Personally I find that OOP is mainly about code reuse (inheritance, objects are instances of classes) and for certain programming problems having an OOP approach helps organize your design. It doesn't hurt to learn other paradigms either. Just like certain languages lend themselves better to certain tasks, different paradigms have advantages in different applications.

  • 55th comment! lolololol jk

    Bucky.

    If you're really going to make 800 tutorials,

    you make the whole youtube your subscriber

  • if u learned once a language (i programmed 1 year in java) and if u understood object orientation it's not difficult to learn every other language...

  • thanks bucky for these tutorials , and i just want to say that , i m learning this language because of you , but you have to organise your lesson because they are just like in some chaos ,

    so please

  • @TheDgdsmaster haha it is one now, probably missclick ;)

  • First LOL @ adad.

  • you can still access the variables without making the class into an object. why?

  • Thank you!

  • 149 likes 0 dislikes bucky = 'Awsomeness!'

  • Need a programming Teacher? contact Bucky P.H.D.(Computer Science) at his website!!111 yay.

  • I never fully understood inheritance (Originally Java/C++), until now!

    Have watched (and programmed in parallel with your code) all day, have made it from 1-36 so far. :)

    Thanks a million for your excellent videos!

    *Happy Irish Guy. :)

  • Ooh so I was trying multiple inheritance, and tried two parent classes with the same variable declaration, turns out if you do class Dad as var1, instead of var2, your child class will inherit var1 from the first declared parent

    Mom var1 = "mom"

    Dad var1 = "Dad"

    Child(Mom,Dad) = var1 will be "mom"

    Child(Dad,Mom) = var1 will be "Dad"

    neato! thanks bucky :D

    and if you edit your class, the previous instantiated classes won't get affected, had a lil trouble with it had to del the objects first

  • very helpful tutorial.great job, buddy!

  • Bucky loves his family... he is writing programs about them. Thanks Bucky's mom and dad for making Bucky inherit from you lol

  • LOL hoss is in the way for this tutorial

  • Damn! I've been livin' under a rock for the past year... I learned python the broken ol' book way.. bucky has shown me the light :D

    Thanks bucky you transformed me into a better, more knowledgeable prorgrammer.

    Keep up the fantastic work!

  • i'm learning a lot about OOP with Python watching your videos, thank's

  • i'm learning a lot about OOP with Python watching your videos, thank's

  • you could also type "clear" to clear the screen. don't know if it will work in windows, but in linux it's very usefull.

  • Tutorial 36!! You must be tired, Bucky.

  • lol look he is on line 607

  • very clear demonstration.

  • This is probably a dumb question, but how would you make the child class inherit certain things from "mom" and certain things from "dad". For example, say "mom" has var1 and var2 and "dad" has its own var1 and var2. How could you make the child class inherit say only var2 from "mom" and only var1 from "dad"? Or is there no way to do this?

  • "wtf is this? get out of the way hoss" lol

  • If Mom and Dad both have a variable named 'var1' then child will get the 'var1' of Mom. If you define class child(Dad,Mom): instead of (Mom,Dad), it will get the 'var1' of Dad, I think.

    Very interesting video, thanks!!!

  • @DoumDoum83

    just typing the code and verified your thought.

  • Multiple Inheritance in action !!..Cool!

  • what is hoss?

  • not sure, but I think it's somekind of sausage :P

  • Fantastic... thanks for your videos, from Spain.

  • >>> print 'bucky youre the shit...'

  • this vids should have two versions on english N spanish :S

  • Yes, obviously he should go through the pain of learning spanish just to make videos more adjusted for you and a few others who'd rather have it in spanish than english - because they understand it "better"; even if they do understand english pretty well.

    Of course.

  • this guy knows how to teach

    thanks!

  • Yeah he does make it look easy, that's for sure. Bucky how did you get so get at this?

  • Bucky makes it look easy; he definitely knows his stuff.

  • Take 1 C++ class and you'll be just as good. It's one thing to know the syntax of a language, but it's another to know how to put it to good use. Knowing the syntax is 20% of the battle, the other 80% is utilizing it.

  • yep, once you know a language such as c++ or java and grasped the concepts of modern programming, picking up a new language is simply learning the sytax. Unless its logical/functional programming.

  • You know, I think learning the language would be easier if presented exactly like bucky has done (which is the best I've seen yet) and coupled with a real life application. I pretty much have the general idea how python works now. But I'm still lost as far as using it in my app.

    I've searched long and hard to find learning tools for python. I've found some good but none as good as this.

    Bucky, you certainly have all your ducks in a row for this subject! 5x43.... 215 stars!

  • @a2zhandi TRUE!! SOOO TRUE

  • @a2zhandi

    yea your not going to make any apps with this the only thing your going to do whit this are cmd application you need a python gui to do this bucky has also posted videos on how to do this

  • @loko95ftp I use blender 3D and it relies heavily on python. This is why it's important for me to learn it. Unfortunately, I haven't did anything with it since my top rated comment above :-(

    I hope to come back and review all bucky has to offer as soon as I have time. Not looking good though.

    Thanks

  • this is a cool func on python

  • i kno this hasn't much t do wi this tut ok. but u kno for IF statements? can u make it check for a part of a word instead of a full word. for example- u ask a yes or no question but as an answer u get "yep" or "yeh" or "yes i am", cud u make it only look for "ye" in the answer?

    reply plz thnx

  • if 'ye' in variable: print 'it is'

  • yes it works thnx man! yr great

  • is there a way to check for multiple? like

    its checking for 'ye' and/or 'me'?

    lol i hope u understand.

  • use or. example:

    if x==y or x==z:

  • Dude, where did you learn all this programming? You've made tutorials on nearly every programming language.

  • @turxxx there are hundreds of programming languages, but yes he is the boss !

  • @turxxx There's tons of books you can find.

  • @turxxx He is the chuck norris of programming

    and for every language you learn the others tend to be really easy because alot of languages are alike :D

    Except when you learn SO MANY like bucky had your bound to mix up your language syntax is the only issue ._.

  • Comment removed

  • @turxxx

    you'll learn one language then you pretty much know them all

  • @turxxx I actually think he explained this once; he buys books like "Python for dummies" and "Python head first" or whatever they're called, learns the languages and then teaches for free! :)

  • hey! 3rd comment! Good video bucky, keep it up

  • 2d?

  • toast!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more