---
title: "Discussion on \"Beginners' Guide to Effortless Doctests in Python\" | Hashnode"
description: "Discussion on \"Beginners' Guide to Effortless Doctests in Python\". Doctests are essentially tests embedded in a docstring. They serve both as example use cases and test cases! A Python expression is provided along with an expected outcome, a test runner collects that and evaluates the expression.\nGetting started\nLet..."
url: "https://hashnode.com/posts/beginners-guide-to-effortless-doctests-in-python/65d36d795e8cd837f4947fbd"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Beginners' Guide to Effortless Doctests in Python](https://blog.adhikary.net/beginners-guide-to-effortless-doctests-in-python?utm_source=hashnode&utm_medium=feed)

Doctests are essentially tests embedded in a docstring. They serve both as example use cases and test cases! A Python expression is provided along with an expected outcome, a test runner collects that and evaluates the expression. Getting started Let...

Jun 20, 2018 · 3 min read · blog.adhikary.net  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#pytest](https://hashnode.com/tag/pytest)

## Written by

[Aniruddha Adhikary](https://hashnode.com/@tuxboy)

@tuxboy · Singapore

  
[View profile](https://hashnode.com/@tuxboy)

Engineering Public Good and Human Welfare

A Software Engineer passionate about public good projects and making technology to serve society en masse.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
