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

🤑 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

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

  • 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
    • 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
  • 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
    • Showing results for:
    • Python
    • Object-Oriented Python
    • Advanced Objects
    • Constructicons
    • Close
  • Cameron Ganley
    Cameron Ganley
    4,049 Points

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

    Posted on Nov 1, 2023 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 on Apr 16, 2021 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 on Nov 6, 2020 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 on Nov 4, 2020 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 on Sep 8, 2020 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 on Jul 6, 2020 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 on May 30, 2020 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 on May 23, 2020 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 on May 23, 2020 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 on May 23, 2020 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 on Apr 7, 2020 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 on Feb 19, 2020 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 on Jan 10, 2020 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 on Oct 31, 2019 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 on Jul 2, 2019 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 on May 26, 2019 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 on Dec 21, 2018 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 on Nov 9, 2018 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 on Oct 22, 2018 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 on Jun 18, 2018 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 on Apr 7, 2018 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 on Dec 21, 2017 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 on Dec 18, 2017 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 on Aug 2, 2017 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 on Jul 20, 2017 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 on Jul 15, 2017 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 on Jun 14, 2017 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.