Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

🚀 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
  • hugo dahl
    hugo dahl
    3,437 Points

    whats wrong with my code?

    Posted October 27, 2023 8:17am by hugo dahl
    hugo dahl
    3,437 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • hugo dahl
    hugo dahl
    3,437 Points

    whats wromg

    Posted October 27, 2023 8:04am by hugo dahl
    hugo dahl
    3,437 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Luke Tate
    PLUS
    Luke Tate
    Courses Plus Student 2,256 Points

    Why doesn't my string get approved by "Check Work"?

    Posted November 13, 2020 8:39pm by Luke Tate
    Luke Tate
    Courses Plus Student 2,256 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Shreya Tyagi
    Shreya Tyagi
    3,011 Points

    Your docstring isn't correct. Got ' Gives a pleasant message about the student. '.

    Posted August 22, 2020 9:52am by Shreya Tyagi
    Shreya Tyagi
    3,011 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Dennis Dumbreni
    Dennis Dumbreni
    14,146 Points

    doc strings

    Posted April 17, 2020 1:01pm by Dennis Dumbreni
    Dennis Dumbreni
    14,146 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Krystal Vincent
    Krystal Vincent
    9,999 Points

    Add a docstring to Treehouse. Should be "Methods related to Treehouse and students.".

    Posted October 22, 2019 8:04pm by Krystal Vincent
    Krystal Vincent
    9,999 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • kudakwashe jamu
    kudakwashe jamu
    8,317 Points

    can any1 assist me am stack

    Posted August 20, 2019 9:57am by kudakwashe jamu
    kudakwashe jamu
    8,317 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • vincent juma
    vincent juma
    1,159 Points

    Hello everyone, kindly help me on this docstring error

    Posted August 4, 2019 7:00am by vincent juma
    vincent juma
    1,159 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • cameth tanashe
    cameth tanashe
    4,260 Points

    i don't know the problem being shown here

    Posted March 25, 2019 12:29pm by cameth tanashe
    cameth tanashe
    4,260 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • D Elis
    D Elis
    13,571 Points

    Writing Better Python.. Challenge Task.. Add a docstring

    Posted October 12, 2018 9:21am by D Elis
    D Elis
    13,571 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Dwane Pennant
    Dwane Pennant
    12,337 Points

    """Gives a pleasant message about the student.""" Error

    Posted October 12, 2018 12:53am by Dwane Pennant
    Dwane Pennant
    12,337 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Alex Rordrigues Do Nascimento
    Alex Rordrigues Do Nascimento
    4,634 Points

    Add a docstring to Treehouse.student. It should say "Gives a pleasant message about the student."

    Posted May 17, 2018 5:51pm by Alex Rordrigues Do Nascimento
    Alex Rordrigues Do Nascimento
    4,634 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Mohammed Ismail
    Mohammed Ismail
    7,190 Points

    Docstring

    Posted January 21, 2018 3:09pm by Mohammed Ismail
    Mohammed Ismail
    7,190 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    2 Answers

  • Albert Lee
    PLUS
    Albert Lee
    Courses Plus Student 1,372 Points

    Add docstring

    Posted August 18, 2017 1:30pm by Albert Lee
    Albert Lee
    Courses Plus Student 1,372 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Oszkár Fehér
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Oszkár Fehér
    Python Web Development Techdegree Graduate 32,887 Points

    I don't really understand why it's not ok

    Posted May 11, 2017 6:15pm by Oszkár Fehér
    .a{fill-rule:evenodd;}techdegree seal-36
    Oszkár Fehér
    Python Web Development Techdegree Graduate 32,887 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • princess mudyahoto
    princess mudyahoto
    18,502 Points

    write better python

    Posted April 11, 2017 3:11pm by princess mudyahoto
    princess mudyahoto
    18,502 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Mduduzi Frederick Dube
    Mduduzi Frederick Dube
    8,886 Points

    What is wrong here?

    Posted January 23, 2017 3:03pm by Mduduzi Frederick Dube
    Mduduzi Frederick Dube
    8,886 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Mona Jalal
    Mona Jalal
    4,302 Points

    no docstring

    Posted June 3, 2016 1:42am by Mona Jalal
    Mona Jalal
    4,302 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • MUZ140259 Juliana Kofi
    MUZ140259 Juliana Kofi
    9,532 Points

    Docstrings

    Posted May 27, 2016 12:45pm by MUZ140259 Juliana Kofi
    MUZ140259 Juliana Kofi
    9,532 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    2 Answers

  • MUZ140907 Wellington Maredza
    MUZ140907 Wellington Maredza
    3,014 Points

    Write Better Python

    Posted July 17, 2015 12:55pm by MUZ140907 Wellington Maredza
    MUZ140907 Wellington Maredza
    3,014 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    2 Answers

  • Rabih Atallah
    Rabih Atallah
    3,405 Points

    identation error

    Posted April 2, 2015 1:21am by Rabih Atallah
    Rabih Atallah
    3,405 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    1 Answer

  • Stephen Bone
    Stephen Bone
    12,359 Points

    Is there an issue with the checking mechanism on this challenge?

    Posted October 29, 2014 9:28pm by Stephen Bone
    Stephen Bone
    12,359 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Docstrings

    3 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