DEV Community

Discussion on: #100DaysOfPython Day 2: Functions, Scope and Best Practices

Collapse
jnario profile image
Jose Nario

Good stuff. Keep going!

Since you're discussing best practices, it's worth noting that functions should have a "docstring". This string appears directly after the function declaration, and is wrapped in triple-quotes.

This docstring can be accessed/inspected via the REPL, is used by IDEs, and is also returned if you call help(your_function).

More: python.org/dev/peps/pep-0257/

Good luck!

Collapse
taeluralexis profile image
Tae'lur Alexis 🦄⚛ Author

I haven't learned that yet. I'm posting and updating as I learn more. For what it's worth, these are notes not tutorials but thank you :)