Learn about our new Community Discord server here and join us on Discord here!

Jump into our new React Basics course 😎

Get job-ready with our Career Toolbox Track's career advice, resume tips, and more 🧰

Probe The AI Multiverse: Exploring the Subfields of Artificial Intelligence 😮

Students: got a cool project or resource to share? Submit it to Treehouse Links! 🤩

Learn about our new Community Discord server here and join us on Discord here!

🤖 Check out all our AI content here 👀

  • Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • AI
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
  • Leo Marco Corpuz
    Leo Marco Corpuz
    18,975 Points

    Doc test challenge

    Posted May 22, 2019 2:47am by Leo Marco Corpuz
    Leo Marco Corpuz
    18,975 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • Unsubscribed User
    Unsubscribed User
    7,263 Points

    Hi there, I think that my code is right but it doesn't compile? Why? Where do I make a mistake

    Posted July 17, 2018 7:06pm by Unsubscribed User
    Unsubscribed User
    7,263 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • Team Voywing
    Team Voywing
    18,181 Points

    Add a doctest to average() that tests the function with the list [1, 2]. Because of how we test doctests, you'll need to

    Posted January 18, 2018 5:30am by Team Voywing
    Team Voywing
    18,181 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • nicole lumpkin
    PLUS
    nicole lumpkin
    Courses Plus Student 5,328 Points

    Can anyone spot my mistake?

    Posted December 11, 2017 3:56pm by nicole lumpkin
    nicole lumpkin
    Courses Plus Student 5,328 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • Dima Dmitriy
    PLUS
    Dima Dmitriy
    Courses Plus Student 599 Points

    How it works?

    Posted June 4, 2017 12:41pm by Dima Dmitriy
    Dima Dmitriy
    Courses Plus Student 599 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • ASHOK Gudivada
    ASHOK Gudivada
    11,701 Points

    What's wrong with my code?

    Posted April 19, 2017 8:17pm by ASHOK Gudivada
    ASHOK Gudivada
    11,701 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • jasonwint2
    jasonwint2
    3,437 Points

    What I am missing here?

    Posted March 18, 2017 11:40pm by jasonwint2
    jasonwint2
    3,437 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • Nitin Chauhan
    PLUS
    Nitin Chauhan
    Courses Plus Student 277 Points

    Doctest fails

    Posted October 15, 2016 3:46pm by Nitin Chauhan
    Nitin Chauhan
    Courses Plus Student 277 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • Arihant Jain
    Arihant Jain
    306 Points

    Confusing!

    Posted June 7, 2016 6:32am by Arihant Jain
    Arihant Jain
    306 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • Steven Clement
    Steven Clement
    11,473 Points

    Python Testing Challenge 1 Task 1

    Posted June 6, 2016 5:23pm by Steven Clement
    Steven Clement
    11,473 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    2 Answers

  • Victor Gavojdea
    Victor Gavojdea
    11,796 Points

    Doctest code works in python but not on the test.

    Posted April 23, 2016 7:45pm by Victor Gavojdea
    Victor Gavojdea
    11,796 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    3 Answers

  • Darryn Smith
    Darryn Smith
    32,043 Points

    Code not passing Challenge: Create a Doctest. Help, please.

    Posted January 11, 2016 5:07am by Darryn Smith
    Darryn Smith
    32,043 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    8 Answers

  • Casey Huckel
    PLUS
    Casey Huckel
    Courses Plus Student 4,257 Points

    Somehow this didn't pass

    Posted December 11, 2015 2:30am by Casey Huckel
    Casey Huckel
    Courses Plus Student 4,257 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    2 Answers

  • Jonathan Walker
    Jonathan Walker
    1,490 Points

    Python Testing Challenge Task 1 of 1

    Posted July 22, 2015 3:15pm by Jonathan Walker
    Jonathan Walker
    1,490 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • MUZ141065 Diana Shone
    MUZ141065 Diana Shone
    2,978 Points

    Add a doctest to average() that tests the function with the list [1, 2]. Because of how we test doctests, you'll need to

    Posted July 10, 2015 7:48am by MUZ141065 Diana Shone
    MUZ141065 Diana Shone
    2,978 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    2 Answers

  • Milagros Roman
    Milagros Roman
    1,228 Points

    doctest is not easy

    Posted July 9, 2015 1:03am by Milagros Roman
    Milagros Roman
    1,228 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • Adam Raitano
    Adam Raitano
    5,387 Points

    Add a doctest to average()...

    Posted July 8, 2015 7:53pm by Adam Raitano
    Adam Raitano
    5,387 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • Annie Scott
    Annie Scott
    27,613 Points

    bummer check preview for details , I have space in between , but it is still not working what am i doing worn

    Posted June 6, 2015 4:22pm by Annie Scott
    Annie Scott
    27,613 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    3 Answers

  • Rungano Matonda
    Rungano Matonda
    3,237 Points

    add a doctest to average() that tests the fucntion with the list [1,2]

    Posted May 20, 2015 6:23am by Rungano Matonda
    Rungano Matonda
    3,237 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    1 Answer

  • MUZ140502 Natasha Hove
    MUZ140502 Natasha Hove
    3,732 Points

    Add a doctest to average() that tests the function with the list [1, 2]. Because of how we test doctests, you'll need to

    Posted April 24, 2015 11:58am by MUZ140502 Natasha Hove
    MUZ140502 Natasha Hove
    3,732 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    2 Answers

  • Devin Scheu
    Devin Scheu
    66,191 Points

    Phython Testing

    Posted April 24, 2015 3:50am by Devin Scheu
    Devin Scheu
    66,191 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    2 Answers

  • Michael B
    Michael B
    3,990 Points

    Doctest doesn't work for me - tried lots of variations

    Posted April 21, 2015 1:12am by Michael B
    Michael B
    3,990 Points
    • Python
    • Python Testing
    • First Steps With Testing
    • Create a Doctest

    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
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.