4 ms·
Sometimes this convention falls apart, e.g. when constructing HTML tags it is easier (and more readable) to write: return '<a href="{}">{}</a>'.format(url,
by BerislavLopac 10y ago
Sometimes this convention falls apart, e.g. when constructing HTML tags it is easier (and more readable) to write:
return '<a href="{}">{}</a>'.format(url, text)
than
return "<a href=\"{}\">{}</a>".format(url, text)
Especially for a lazy developer like me... :)