Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
      You have completed Basic Object-Oriented Python!
      
    
You have completed Basic Object-Oriented Python!
Preview
    
      
  Learn what built-in methods are in Python.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
                      [MUSIC]
                      0:00
                    
                    
                      In Python,
                      0:05
                    
                    
                      your class has access to a lot of methods
that are hidden behind the scenes.
                      0:06
                    
                    
                      Let's take a look and see what
methods our car class has already.
                      0:12
                    
                    
                      We're going to use dir on
an instance of our car class.
                      0:20
                    
                    
                      And let's print it out, so
we can see it in the console.
                      0:27
                    
                    
                      Okay.
                      0:37
                    
                    
                      So we can see all of the methods and
attributes, that we have made so far.
                      0:39
                    
                    
                      But there are also a lot of Dunder
methods that we didn't create.
                      0:45
                    
                    
                      These are built-in methods that
are automatically created, and
                      0:51
                    
                    
                      give us unlimited power.
                      0:55
                    
                    
                      Just kidding, [LAUGH] but
they can make our life a lot easier by
                      0:59
                    
                    
                      helping Python know how to
interact with our objects.
                      1:03
                    
                    
                      I'm going to pick out a couple
I think you might use often.
                      1:08
                    
                    
                      But I'll put a link in
the teacher's notes below,
                      1:11
                    
                    
                      if you want to learn about all of them.
                      1:14
                    
                    
                      Let's get into it.
                      1:17
                    
              
        You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up