0
votes

I am trying to print a header but this is the error I keep getting: TypeError: not all arguments converted during string formatting. This is my code:

print("%10s$20s%20s \n" % ("Year", "Data Breaches", "Records Exposed"))

Thanks

1
It looks like a typo. Your second substitution has $ not %.Craig

1 Answers

0
votes

There is a typo - replace $ with % (5th character)