🤑 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
    • 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
  • nikmillard
    nikmillard
    12,703 Points

    Why Won't it Work!?

    Posted February 27, 2017 11:17pm by nikmillard
    nikmillard
    12,703 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    2 Answers

  • David Greenstein
    David Greenstein
    6,734 Points

    UnboundLocalError: local variable 'random' referenced before assignment - Why is this happening?

    Posted January 29, 2017 9:23pm by David Greenstein
    David Greenstein
    6,734 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    2 Answers

  • Unsubscribed User
    Unsubscribed User
    3,120 Points

    error when using pycharm and python's text editor

    Posted January 7, 2017 5:03pm by Unsubscribed User
    Unsubscribed User
    3,120 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • V K
    V K
    5,237 Points

    There's a small typo in the teacher's notes

    Posted December 12, 2016 1:20am by V K
    V K
    5,237 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    0 Answers

  • dmitriy ignatiev
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    dmitriy ignatiev
    Python Web Development Techdegree Student 1,789 Points

    Inheritance in python

    Posted November 16, 2016 4:14am by dmitriy ignatiev
    .a{fill-rule:evenodd;}techdegree
    dmitriy ignatiev
    Python Web Development Techdegree Student 1,789 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Hara Gopal K
    PLUS
    Hara Gopal K
    Courses Plus Student 10,027 Points

    declaring variables outside/before the class

    Posted November 4, 2016 5:17pm by Hara Gopal K
    Hara Gopal K
    Courses Plus Student 10,027 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Nitin Chauhan
    PLUS
    Nitin Chauhan
    Courses Plus Student 277 Points

    How does hit_points become an optional argument when it has not been passed as a key to kwargs?

    Posted October 14, 2016 12:52pm by Nitin Chauhan
    Nitin Chauhan
    Courses Plus Student 277 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Patrick Kearns
    Patrick Kearns
    4,669 Points

    I'm not fully understanding why we were able to drop the 'kwargs.get()' within the __init__.

    Posted August 10, 2016 3:26pm by Patrick Kearns
    Patrick Kearns
    4,669 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Armando Gonzalez
    Armando Gonzalez
    4,161 Points

    Console problems

    Posted July 28, 2016 5:37pm by Armando Gonzalez
    Armando Gonzalez
    4,161 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Wilfredo Casas
    Wilfredo Casas
    6,174 Points

    Why can't the lists be inside the class?

    Posted March 23, 2016 5:24pm by Wilfredo Casas
    Wilfredo Casas
    6,174 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Parimal Raghavan
    PLUS
    Parimal Raghavan
    Courses Plus Student 1,940 Points

    Can someone explain what this for loop does?

    Posted February 17, 2016 7:44am by Parimal Raghavan
    Parimal Raghavan
    Courses Plus Student 1,940 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Colby Work
    Colby Work
    20,422 Points

    Why set anything with self.x, and just use setattr()?

    Posted January 10, 2016 4:26am by Colby Work
    Colby Work
    20,422 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • underfish
    underfish
    3,226 Points

    Is using setattr() with **kwargs a good idea?

    Posted January 4, 2016 10:37pm by underfish
    underfish
    3,226 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • lindseyk
    lindseyk
    4,506 Points

    Curious about the general structure and order of setting things up:

    Posted September 25, 2015 12:05am by lindseyk
    lindseyk
    4,506 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Yan Zaretskiy
    Yan Zaretskiy
    4,475 Points

    Is it possible to force setattr() to discard new attributes?

    Posted April 7, 2015 2:52am by Yan Zaretskiy
    Yan Zaretskiy
    4,475 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Yukiru Kannazuki
    Yukiru Kannazuki
    3,036 Points

    Where to place a series of if/elif statements that regulate the hp from the color of a monster?

    Posted April 6, 2015 9:15pm by Yukiru Kannazuki
    Yukiru Kannazuki
    3,036 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Igors Smirnovs
    Igors Smirnovs
    10,441 Points

    Where the newly defined attributes are stored?

    Posted March 16, 2015 11:02pm by Igors Smirnovs
    Igors Smirnovs
    10,441 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Welby Obeng
    Welby Obeng
    20,340 Points

    Question about the for loop part

    Posted February 19, 2015 2:35pm by Welby Obeng
    Welby Obeng
    20,340 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

  • Aleksei Loginov
    Aleksei Loginov
    2,835 Points

    How does a new attribute like adjective='manxsome' become a kwargs dictionary (or its item)?

    Posted January 23, 2015 8:32am by Aleksei Loginov
    Aleksei Loginov
    2,835 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    3 Answers

  • Vamsi Pavan Mahesh Gunturu
    Vamsi Pavan Mahesh Gunturu
    4,541 Points

    I don't understand the for loop part

    Posted January 14, 2015 10:50am by Vamsi Pavan Mahesh Gunturu
    Vamsi Pavan Mahesh Gunturu
    4,541 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    3 Answers

  • Adiv Abramson
    Adiv Abramson
    6,919 Points

    Can an instance variable, e.g. self.xxx have the same name as a class variable? If so, is this a good practice?

    Posted December 3, 2014 6:25pm by Adiv Abramson
    Adiv Abramson
    6,919 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • Intro to Inheritance

    1 Answer

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.