> And f-strings, unlike JavaScript's template strings, are not function calls.
IIRC, they're syntactic sugar over "string".format(locals())
IIRC, they're syntactic sugar over "string".format(locals())
https://docs.python.org/3/library/string.html#format-string-... https://docs.python.org/3/reference/lexical_analysis.html#f-...