print format has unused arguments

11 views Asked by At

I have the following:

data = [['Harry', 25, 5, 1.00],['Sally', 30, 7, .50]]

print('{%s}  \n'.format(data[0][0]))

Spyder ide says I have missing arguments at positions 0 when I run the code I get keyError: '%s' I can't for life of me spot the problem

type(data[0][0]) comes back as string

0

There are 0 answers