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).
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!
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 :)