✨ 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
    • Write Better Python
    • Cleaner Code
    • Docstrings
    • Close
  • hugo dahl
    hugo dahl
    3,437 Points

    whats wrong with my code?

    Posted on Oct 27, 2023 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 on Oct 27, 2023 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 on Nov 13, 2020 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 on Aug 22, 2020 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 on Apr 17, 2020 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 on Oct 22, 2019 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 on Aug 20, 2019 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 on Aug 4, 2019 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 on Mar 25, 2019 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 on Oct 12, 2018 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 on Oct 12, 2018 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 on May 17, 2018 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 on Jan 21, 2018 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 on Aug 18, 2017 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 on May 11, 2017 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 on Apr 11, 2017 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 on Jan 23, 2017 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 on Jun 3, 2016 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 on May 27, 2016 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 on Jul 17, 2015 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 on Apr 2, 2015 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 on Oct 29, 2014 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.