realpython / book1-exercises

Book 1 -- Exercises for the book
160 stars 144 forks source link

Line of code from Fundamental Review does not work #22

Open dfindley opened 7 years ago

dfindley commented 7 years ago

print("four: {}".format() four[0][5] == 'n' and four[0][0] == "P" and four[2][1] == "u" )

This gives a syntax error. Changing it to this:

print("four: {}".format( four[0][5] == 'n' and four[0][0] == "P" and four[2][1] == "u" ))

fixes the issue.