Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.

Documenting With Docstrings (Part 2)

Docstrings have different layouts depending on what they’re being used for. The content, however, generally stays the same.

To learn more about docstrings formats, check out the following resources:

Comments & Discussion

ron53white on March 12, 2020

I’m trying to figure out the repeated references to “dundun”. Was this defined elsewhere and I missed it? It’s been used in several sections. Or maybe I’m just not hearing it correctly given differences in diction.

Andrew Stephen RP Team on March 12, 2020

Hi @ron53white it is actually pronounced “dunder” and it refers to any variable that has leading and trailing double underscores, e.g. name would be pronounced “dunder name”, main would be “dunder main” etc. I mention this @2:20 in the previous video (Documenting with Docstrings (Part 1)).

Become a Member to join the conversation.