Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Cameron Ganley
    Cameron Ganley
    4,050 Points

    Console is telling me "ModuleNotFoundError: No module named 'books'"

    Posted November 1, 2023 6:33pm by Cameron Ganley
    Cameron Ganley
    4,050 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Hanwen Zhang
    Hanwen Zhang
    20,084 Points

    Still don't understand @classmethod....

    Posted April 16, 2021 8:53pm by Hanwen Zhang
    Hanwen Zhang
    20,084 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Robert Peters
    Robert Peters
    3,728 Points

    What is actually happening in this call to a classmethod?

    Posted November 6, 2020 9:20pm by Robert Peters
    Robert Peters
    3,728 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Robert Peters
    Robert Peters
    3,728 Points

    Why the use of books=None?

    Posted November 4, 2020 10:26pm by Robert Peters
    Robert Peters
    3,728 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    2 Answers

  • Michael Russell
    Michael Russell
    1,575 Points

    Question regarding previous "Frustration" task.

    Posted September 8, 2020 1:17am by Michael Russell
    Michael Russell
    1,575 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Aizah Sadiq
    Aizah Sadiq
    2,435 Points

    What is the purpose of a class method?

    Posted July 6, 2020 3:57pm by Aizah Sadiq
    Aizah Sadiq
    2,435 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Nicholas Abate
    Nicholas Abate
    1,643 Points

    Book and Bookcase Relationship

    Posted May 30, 2020 10:38pm by Nicholas Abate
    Nicholas Abate
    1,643 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Kohei Ashida
    Kohei Ashida
    4,882 Points

    In what kind of situations can class method be more useful than instance method?

    Posted May 23, 2020 6:14pm by Kohei Ashida
    Kohei Ashida
    4,882 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Kohei Ashida
    Kohei Ashida
    4,882 Points

    Why don't you need to import Book class?

    Posted May 23, 2020 5:54pm by Kohei Ashida
    Kohei Ashida
    4,882 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    2 Answers

  • Kohei Ashida
    Kohei Ashida
    4,882 Points

    Is my understanding correct on what is "decorator"?

    Posted May 23, 2020 4:47pm by Kohei Ashida
    Kohei Ashida
    4,882 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • tomtrnka
    tomtrnka
    9,780 Points

    classmethods name convention

    Posted April 7, 2020 12:24pm by tomtrnka
    tomtrnka
    9,780 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • HAROLD MORI
    HAROLD MORI
    3,629 Points

    ModuleNotFoundError: No module named 'books'

    Posted February 19, 2020 8:11am by HAROLD MORI
    HAROLD MORI
    3,629 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Prateek Sharan Lall
    Prateek Sharan Lall
    1,778 Points

    TypeError: object() takes no parameters

    Posted January 10, 2020 1:33pm by Prateek Sharan Lall
    Prateek Sharan Lall
    1,778 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • MIAN OSAMA ARSHAD
    PLUS
    MIAN OSAMA ARSHAD
    Courses Plus Student 279 Points

    cls() confused

    Posted October 31, 2019 9:37am by MIAN OSAMA ARSHAD
    MIAN OSAMA ARSHAD
    Courses Plus Student 279 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Anthony Grodowski
    Anthony Grodowski
    4,902 Points

    How does Book pass it's output into Bookcase and could someone explain to me whole class Bookcase chunk of code?

    Posted July 2, 2019 3:34pm by Anthony Grodowski
    Anthony Grodowski
    4,902 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    2 Answers

  • Juneau Lim
    Juneau Lim
    13,362 Points

    Still confused with @classmethod

    Posted May 26, 2019 10:21pm by Juneau Lim
    Juneau Lim
    13,362 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Jay Reyes
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Jay Reyes
    Python Web Development Techdegree Student 15,937 Points

    Bookcase's 'books' attribute

    Posted December 21, 2018 8:39pm by Jay Reyes
    .a{fill-rule:evenodd;}techdegree
    Jay Reyes
    Python Web Development Techdegree Student 15,937 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    4 Answers

  • Tom Watson
    Tom Watson
    9,987 Points

    Why use __init__ on Bookcase()?

    Posted November 9, 2018 6:44pm by Tom Watson
    Tom Watson
    9,987 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • MONTRIAL HARRELL
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    MONTRIAL HARRELL
    Python Web Development Techdegree Student 2,150 Points

    Attribute Error - type object 'Bookcase' has no attribute 'create_bookcase'

    Posted October 22, 2018 6:56pm by MONTRIAL HARRELL
    .a{fill-rule:evenodd;}techdegree
    MONTRIAL HARRELL
    Python Web Development Techdegree Student 2,150 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Ines Fazlić
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ines Fazlić
    Python Web Development Techdegree Student 9,569 Points

    how does the calling of Book() work if not imported?

    Posted June 18, 2018 3:26pm by Ines Fazlić
    .a{fill-rule:evenodd;}techdegree
    Ines Fazlić
    Python Web Development Techdegree Student 9,569 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    2 Answers

  • Kia Matthews
    Kia Matthews
    3,402 Points

    I don't understand how the Book and Bookcase classes work together

    Posted April 7, 2018 2:38am by Kia Matthews
    Kia Matthews
    3,402 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    2 Answers

  • Flore W
    Flore W
    4,744 Points

    create_bookcase without the classmethod AttributeError

    Posted December 21, 2017 8:06am by Flore W
    Flore W
    4,744 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    3 Answers

  • Andrew McLane
    Andrew McLane
    3,385 Points

    (books = None) explanation

    Posted December 18, 2017 6:05pm by Andrew McLane
    Andrew McLane
    3,385 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Henry Lin
    Henry Lin
    11,636 Points

    The difference between str(bc.books) and str(bc.books[0])?

    Posted August 2, 2017 11:06pm by Henry Lin
    Henry Lin
    11,636 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • doesitmatter
    doesitmatter
    12,885 Points

    Why use @classmethod?

    Posted July 20, 2017 2:41pm by doesitmatter
    doesitmatter
    12,885 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    4 Answers

  • Stephen Cole
    PLUS
    Stephen Cole
    Courses Plus Student 15,811 Points

    Does the "Constructions" section of Object-Oriented Python have a typo in the header. It says "Constructicons."

    Posted July 15, 2017 8:16pm by Stephen Cole
    Stephen Cole
    Courses Plus Student 15,811 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    1 Answer

  • Frank Campos
    Frank Campos
    4,175 Points

    I do not understand how we access to __str__ method of the Book class

    Posted June 14, 2017 7:28pm by Frank Campos
    Frank Campos
    4,175 Points
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord