I am still trying to understand the new syntax for string formatting in Python.
"{fpath:>80}".format(fpath=path, flongest=longest)
The above code interpolates the path argument, and formats the string correctly, but replacing the text window value (80) with a variable gives ValueError: Invalid format specifier
"{fpath:>flongest}".format(fpath=path, flongest=longest)
How can the window size be assigned through a variable?
"{fpath:>???}".format(fpath=path, flongest=longest)