🤑 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
  • Hannah Dickey
    Hannah Dickey
    5,986 Points

    Tabs and spacing inconsistency

    Posted March 9, 2017 6:39pm by Hannah Dickey
    Hannah Dickey
    5,986 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    2 Answers

  • Chang Hyeon Lee
    Chang Hyeon Lee
    2,008 Points

    I got invalid syntax error

    Posted January 30, 2017 6:19pm by Chang Hyeon Lee
    Chang Hyeon Lee
    2,008 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    0 Answers

  • evtccgltph
    evtccgltph
    1,892 Points

    Is the code at 2:36 wrong?

    Posted January 3, 2017 12:53pm by evtccgltph
    evtccgltph
    1,892 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    1 Answer

  • Gilang Ilhami
    Gilang Ilhami
    12,045 Points

    DRY 'Goblin' object has no attribute 'attack'

    Posted December 16, 2016 6:59pm by Gilang Ilhami
    Gilang Ilhami
    12,045 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    3 Answers

  • Thomas Helms
    Thomas Helms
    16,816 Points

    <bound method> output

    Posted July 28, 2016 3:15pm by Thomas Helms
    Thomas Helms
    16,816 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    2 Answers

  • saro lin
    PLUS
    saro lin
    Courses Plus Student 531 Points

    DRY

    Posted January 31, 2016 3:09am by saro lin
    saro lin
    Courses Plus Student 531 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    1 Answer

  • Lukáš KriÅ¡ko
    Lukáš Kriško
    3,155 Points

    Import understanding

    Posted January 2, 2016 5:48pm by Lukáš Kriško
    Lukáš Kriško
    3,155 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    3 Answers

  • Jason Anders
    MOD
    Jason Anders
    Treehouse Moderator 145,860 Points

    Does importing also import other imports?

    Posted October 4, 2015 6:01pm by Jason Anders
    Jason Anders
    Treehouse Moderator 145,860 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    4 Answers

  • Benjamin Doyle
    Benjamin Doyle
    9,603 Points

    Python 2.7 after player.attack() -> Global name 'attack_limit' is not defined even after adding the self. part before it

    Posted September 23, 2015 12:06am by Benjamin Doyle
    Benjamin Doyle
    9,603 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    5 Answers

  • MUZ140920 Kudakwashe Murungu
    MUZ140920 Kudakwashe Murungu
    6,316 Points

    My code won't pass. After following up through - my player is not having the attribute attack()

    Posted July 29, 2015 11:44am by MUZ140920 Kudakwashe Murungu
    MUZ140920 Kudakwashe Murungu
    6,316 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    1 Answer

  • David Hackett
    David Hackett
    3,191 Points

    See 1:34 of this video... you have spaces set at 2 - does PEP8 not mean that it should be 4??

    Posted June 3, 2015 9:45am by David Hackett
    David Hackett
    3,191 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    1 Answer

  • Pulkit Kumar
    Pulkit Kumar
    2,052 Points

    just a very basic question why do we always have to pass self in the methods that we define?

    Posted December 31, 2014 9:29am by Pulkit Kumar
    Pulkit Kumar
    2,052 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    2 Answers

  • tyronelobban
    tyronelobban
    594 Points

    OOP Design

    Posted December 29, 2014 8:09pm by tyronelobban
    tyronelobban
    594 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    3 Answers

  • Charles Harpke
    Charles Harpke
    33,986 Points

    DRY | code won't pass

    Posted November 28, 2014 2:48pm by Charles Harpke
    Charles Harpke
    33,986 Points
    • Python
    • Object-Oriented Python (retired)
    • Inheritance
    • DRY

    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.