I'm trying to create headers of a given width and would like to use
>>> print(f'{"string":15<}|')
Traceback (most recent call last):
File "<input>", line 1, in <module>
ValueError: Unknown format code '<' for object of type 'str'
Are we meant to cobble together headers like this or am I missing something about f strings?
print('string'+" "*(15-len('string'))+"|")
string |