What does \'=\' alignment mean in the following error message, and why does this code cause it?
\'=\' alignment
>&
This format would be acceptable
"{num}:03".format(num="1")
but the way you have the placeholder specified {num:03} is not. That is an interesting ValueError though, if you remove the : the interesting error is replaced by a standard KeyError.
{num:03}
:
KeyError