πŸ€‘ Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! πŸš€start learning today!

🌟 Dreaming of a bright future? πŸŽ“ Ask about the Treehouse Scholarship program! πŸš€

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • Cameron Ganley
    Cameron Ganley
    4,049 Points

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

    Posted November 1, 2023 6:33pm by Cameron Ganley
    Cameron Ganley
    4,049 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,810 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,810 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.