There are multiple instances where the .format() function is used for inserting variables into triple quoted strings. This makes the code ugly and hard to read. A far better approach is to use triple quote fstrings.
For example, instead of:
x = """hello {}""".format(name)
it would be better to use:
x=f"""hello {name}"""
We should fix these and stop using the .format() function going forward.
There are multiple instances where the
.format()
function is used for inserting variables into triple quoted strings. This makes the code ugly and hard to read. A far better approach is to use triple quote fstrings.For example, instead of:
it would be better to use:
We should fix these and stop using the
.format()
function going forward.