VOOZH about

URL: https://www.coursera.org/learn/python-classes-inheritance

⇱ Python Classes and Inheritance | Coursera


Python Classes and Inheritance

Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.

Python Classes and Inheritance

132,556 already enrolled

Included with

β€’

Learn more

Ask Coursera

Gain insight into a topic and learn the fundamentals.
4.7

3,728 reviews

Intermediate level
Some related experience required
Flexible schedule
2 weeks at 10 hours a week
Learn at your own pace
95%
Most learners liked this course

Gain insight into a topic and learn the fundamentals.
4.7

3,728 reviews

Intermediate level
Some related experience required
Flexible schedule
2 weeks at 10 hours a week
Learn at your own pace
95%
Most learners liked this course

What you'll learn

  • Explore classes, instances, and inheritance to represent data efficiently.

  • Gain insights into class design and cultivate the practice of writing automated tests for your code.

  • Learn to override built-in methods and create inherited classes that reuse functionality.

Details to know

Shareable certificate

Add to your LinkedIn profile

Assessments

2 assignments

Taught in English

Build your subject-matter expertise

This course is part of the Python 3 Programming Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate

There are 4 modules in this course

This course introduces classes, instances, and inheritance. You will learn how to use classes to represent data in concise and natural ways. You'll also learn how to override built-in methods and how to create "inherited" classes that reuse functionality. You'll also learn about how to design classes. Finally, you will be introduced to the good programming habit of writing automated tests for their own code.

The course is best-suited for you if you are already familiar with Python fundamentals, which are covered in the "Python Basics" and "Python Functions, Files, and Dictionaries" courses (courses 1 and 2 of the Python 3 Programming Specialization). It is optional to have taken the "Data Collection and Processing with Python" course (course 3 of the specialization), but knowledge of retrieving and processing complex nested data is helpful. This is the fourth of five courses in the Python 3 Programming Specialization.

An introduction to the course

What's included

5 videos2 readings1 ungraded lab

5 videosβ€’Total 42 minutes
  • Introduction to the Specializationβ€’11 minutes
  • What’s New? Updates and Improvements in the Second Editionβ€’2 minutes
  • Welcome to Python Classes and Inheritanceβ€’3 minutes
  • How to Use the Interactive Textbookβ€’14 minutes
  • Executing Python in the Jupyter Environment (Optional)β€’11 minutes
2 readingsβ€’Total 20 minutes
  • Syllabusβ€’10 minutes
  • Help Us Learn More About You!β€’10 minutes
1 ungraded labβ€’Total 60 minutes
  • (Optional) Getting Started with Jupyter Notebooksβ€’60 minutes

In this module, lectures and activities from the Runestone textbook will cover more complex data structures. By the end of this week, you will have learned how to process json formatted data, traverse nested data using nested iteration, and extract values from nested data.

What's included

17 videos1 assignment1 programming assignment15 app items1 ungraded lab

17 videosβ€’Total 75 minutes
  • Introduction: Constructing Classesβ€’1 minute
  • User-Defined Classesβ€’9 minutes
  • Adding Parameters to the Constructorβ€’4 minutes
  • Adding Other Methods to a Classβ€’6 minutes
  • Instance Variable Search Orderβ€’2 minutes
  • Private and Public Instance Variablesβ€’7 minutes
  • Example: Creating Instances from Dataβ€’6 minutes
  • Conclusion: Constructing Classesβ€’1 minute
  • Introduction: Objects and Instancesβ€’1 minute
  • Converting an Object to a Stringβ€’3 minutes
  • Special (dunderscore) Methodsβ€’4 minutes
  • Instances as Return Valuesβ€’3 minutes
  • Sorting Lists of Instancesβ€’9 minutes
  • Class Variables and Instance Variablesβ€’6 minutes
  • Thinking About Classes and Instancesβ€’2 minutes
  • Testing Classesβ€’7 minutes
  • Conclusion: Objects and Instancesβ€’1 minute
1 assignmentβ€’Total 30 minutes
  • Optional - What Did You Use to Practice This Week?β€’30 minutes
1 programming assignmentβ€’Total 60 minutes
  • Assessment - Classesβ€’60 minutes
15 app itemsβ€’Total 145 minutes
  • Use the Runestone Practice Toolβ€’5 minutes
  • Introduction: Classes and Objects - The Basicsβ€’10 minutes
  • Objects Revisitedβ€’10 minutes
  • User Defined Classesβ€’10 minutes
  • Adding Parameters to the Constructorβ€’10 minutes
  • Adding Other Methods to a Classβ€’10 minutes
  • Public and Private Instance Variablesβ€’10 minutes
  • Objects as Arguments and Parametersβ€’10 minutes
  • Converting an Object to a Stringβ€’10 minutes
  • Instances as Return Valuesβ€’10 minutes
  • Sorting Lists of Instancesβ€’10 minutes
  • Class Variables and Instance Variablesβ€’10 minutes
  • Thinking About Classes and Instancesβ€’10 minutes
  • Testing Classesβ€’10 minutes
  • A Tamagotchi Gameβ€’10 minutes
1 ungraded labβ€’Total 60 minutes
  • Optional Lab - Classesβ€’60 minutes

What's included

12 videos1 assignment1 programming assignment9 app items1 ungraded lab

12 videosβ€’Total 71 minutes
  • Introduction: Inheritanceβ€’3 minutes
  • Inheriting Variables and Methodsβ€’8 minutes
  • Overriding Methodsβ€’11 minutes
  • Invoking the Parent Class's Methodβ€’4 minutes
  • Multiple Inheritanceβ€’3 minutes
  • Conclusion: Inheritanceβ€’2 minutes
  • Introduction: Decoratorsβ€’0 minutes
  • Function Wrapping and Decoratorsβ€’20 minutes
  • Decorators with Classesβ€’8 minutes
  • Property Decoratorsβ€’8 minutes
  • Method Decoratorsβ€’4 minutes
  • Outro: Decoratorsβ€’1 minute
1 assignmentβ€’Total 30 minutes
  • Optional - What Did You Use to Practice This Week?β€’30 minutes
1 programming assignmentβ€’Total 60 minutes
  • Assessment - Inheritanceβ€’60 minutes
9 app itemsβ€’Total 85 minutes
  • Use the Runestone Practice Toolβ€’5 minutes
  • Introduction: Class Inheritanceβ€’10 minutes
  • Inheriting Variables and Methodsβ€’10 minutes
  • Overriding Methodsβ€’10 minutes
  • Invoking the Parent Class's Methodβ€’10 minutes
  • Multiple Inheritanceβ€’10 minutes
  • Tamagotchi Revisitedβ€’10 minutes
  • Function Wrapping and Decoratorsβ€’10 minutes
  • Decorators with Classesβ€’10 minutes
1 ungraded labβ€’Total 60 minutes
  • Optional Lab - Inheritanceβ€’60 minutes

What's included

17 videos2 readings3 programming assignments4 app items1 ungraded lab

17 videosβ€’Total 100 minutes
  • Introduction: More Advanced Functionsβ€’0 minutes
  • Adding Documentation to Functions using Docstringsβ€’4 minutes
  • Dynamic Positional Arguments with *argsβ€’5 minutes
  • Dynamic Keyword Arguments with **kwargsβ€’7 minutes
  • Decorators with argumentsβ€’5 minutes
  • Built-in decorators in the functools moduleβ€’12 minutes
  • Outro: More Advanced Functionsβ€’1 minute
  • Introduction: Exceptionsβ€’1 minute
  • Exception Handling Flow-of-controlβ€’7 minutes
  • Handling Different Exception Typesβ€’7 minutes
  • Exception Instancesβ€’4 minutes
  • When to use Try/Exceptβ€’3 minutes
  • Conclusion: Exceptionsβ€’1 minute
  • Debugging with Break Pointsβ€’7 minutes
  • Introduction to Djangoβ€’17 minutes
  • How Django Uses Classes and Inheritanceβ€’14 minutes
  • Introduction - Final Course Projectβ€’5 minutes
2 readingsβ€’Total 20 minutes
  • Course Feedbackβ€’10 minutes
  • Keep Learning with Michigan Onlineβ€’10 minutes
3 programming assignmentsβ€’Total 180 minutes
  • Assessment - Decoratorsβ€’60 minutes
  • Assessment - Exceptionsβ€’60 minutes
  • Assessment - Project: Wheel of Pythonβ€’60 minutes
4 app itemsβ€’Total 35 minutes
  • Use the Runestone Practice Toolβ€’5 minutes
  • Exceptionsβ€’10 minutes
  • When to use Try/Exceptβ€’10 minutes
  • Standard Exceptionsβ€’10 minutes
1 ungraded labβ€’Total 60 minutes
  • Optional Lab - Try Exceptβ€’60 minutes

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Instructors

Instructor ratings
4.7 (443 ratings)
University of Michigan
8 Coursesβ€’587,818 learners

Why people choose Coursera for their career

πŸ‘ Image

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
πŸ‘ Image

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
πŸ‘ Image

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
πŸ‘ Image

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

Learner reviews

  • 5 stars

    76.98%

  • 4 stars

    18.83%

  • 3 stars

    2.84%

  • 2 stars

    0.85%

  • 1 star

    0.48%

Showing 3 of 3728

SV
Β·

Reviewed on May 4, 2020

Really loved it! Thanks a lot for this one again, learnt quite a bunch about the classes and how to use them - will definetely help me in my professional level quite soon!

NA
Β·

Reviewed on Aug 5, 2020

All of these courses have been really great. Courses 3 and 4 though have been a lot shorter and therefore it feels like the improvement and experience are not as great as in the first two courses.

YD
Β·

Reviewed on Oct 16, 2020

The course is really good for learning object oriented programming in python for we beginners. Thank you coursera and Fr. CRCE for giving a platform to learn these courses.

Frequently asked questions

To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.

When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.

Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.

Financial aid available,