I am currently trying to print a tabulated format (using left alignment and padding) for headings in a table however I keep getting the following error.
ValueErr
The { and } characters need to be escaped where they're not part of the formatting template.
{
}
Try: print("{0}:<15}}{1}:<15}}{2}:<8}}".format("1", "2", "3"))
print("{0}:<15}}{1}:<15}}{2}:<8}}".format("1", "2", "3"))
Outputs: 1:<15}2:<15}3:<8}
1:<15}2:<15}3:<8}