1

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 %. Commented Apr 6, 2020 at 17:12

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.