Explore Python Fundamentals

Objects and Methods

This project is part of the liveProject series Explore Python Fundamentals, Part 1.
define a function and class • basics of a Python “shell” such as Jupyter Notebook
skills learned
add functionality to a pricing application • create a class using type() • add bound methods to a class • monkey patch a class after creation
Naomi Ceder
1 week · 1-3 hours per week · BEGINNER

placing your order...

Don't refresh or navigate away from the page.
liveProject This project is part of the liveProject series Explore Python Fundamentals, Part 1. liveProjects give you the opportunity to learn new skills by completing real-world challenges in your local development environment. Solve practical problems, write working code, and analyze real data—with liveProject, you learn by doing. These self-paced projects also come with full liveBook access to select books for 90 days plus permanent access to other select Manning products. $17.99 $29.99 you save: $12 (40%) self-paced learning
Objects and Methods (liveProject) added to cart
continue shopping
go to cart

Look inside
In this liveProject, you’ll take on the task of extending a pricing application. You’ve just hit your first speed bump of needing to add functionality to the class that manages prices. However, that class is used elsewhere and you can’t get permission to change it. Your challenge is to implement a “monkey patch”—adding methods to the class at runtime—by experimenting with Python-bound methods.
This project is designed for learning purposes and is not a complete, production-ready application or solution.

book resources

When you start your liveProject, you get full access to the following books for 90 days.

project author

Naomi Ceder
Naomi Ceder is the former chair of the Python Software Foundation. She has been learning, using, and teaching Python since 2001.


This liveProject is for both new and experienced Python programmers who want to improve their understanding of the language. To begin this liveProject you will need to be familiar with:

  • Python “shell” such as Jupyter Notebook
  • Defining a function
  • Defining a class

you will learn

In this liveProject, you’ll master fundamental Python concepts and techniques that will help you grow as a Python programmer.

  • Use the __dict__ attribute to look at an instance’s attributes
  • Use the dir() function to see all of the attributes an object has
  • Use the type() function to both get the class of an object and to create a class


You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.