1 min readMay 22, 2020
Don’t you have formatters in Python?
I think time spent in formatting is wasted time. But may be different in Python since some formatting is semantics for the compiler.
About comments: you quote 2 kinds of comments that are useful (example and why), but you provide a bad comment in an example:
def function(key, value=0):
“””Return a dictionary and a list…”””
d = {key: value}
l = [key, value]
return d, l