Lecture 18: More Python Class Methods

MIT 6.100L Introduction to CS and Programming using Python, Fall 2022
Instructor: Ana Bell
View the complete course: ocw.mit.edu/courses/6-100l-in...
KZread Playlist: • MIT 6.100L Introductio...
This lecture discusses decomposition and abstraction at work with Python classes. Bundling data and behaviors means you can use objects consistently. Dunder methods are abstracted by common operations, but they’re just methods behind the scenes!
License: Creative Commons BY-NC-SA
More information at ocw.mit.edu/terms
More courses at ocw.mit.edu
Support OCW at ow.ly/a1If50zVRlQ
We encourage constructive comments and discussion on OCW’s KZread and other social media channels. Personal attacks, hate speech, trolling, and inappropriate comments are not allowed and may be removed. More details at ocw.mit.edu/comments.

Пікірлер: 4

  • @leonardoalvarado7632
    @leonardoalvarado763224 күн бұрын

    Then the reason len is a method is beacuse there is a method inside an object (list, string o dictinary) called __len__ that calculate the lenght of the objet .

  • @bangvu2127
    @bangvu2127Ай бұрын

    Thanks for the great explanation of the python classes

  • @sebah1991
    @sebah1991Ай бұрын

    This course is exactly what I was looking for. Is there any way to get the name of the IDE Theme. I have really grown to like it.

  • @iam_mausam

    @iam_mausam

    Ай бұрын

    its anaconda