Closed ghost closed 4 years ago
I get it :-) But, if I'm not mistaken, the statement
print("This is the variable: {}".format(x))
is the former suggested variant of the f-string formatting
print(f"This is the variable: {x}")
The latter supported by Python 3.6 onward.
I used these a lot of places, and since YAPO likely won't work on Python 3.6 or later, wouldn't the latter be better?
you are absolutely correct, print(f"This is the variable: {x}") is the better variant
file reformat fixed string building on a few places cleanup of file open without 'with' statement