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

New No-Code Track! 🚀 New videos dropping every week—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
  • 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
    Treehouse Project Reviewer

    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
    Treehouse Project Reviewer
    • 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.

    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.