M2 Exercise four

I have been working on module two exercise four. I keep getting the same error code. I have tried everything I can think of.

(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not. You can share the errors you get)

  • Description (include relevant info but please do not post solution code or your entire notebook)
1 Like

Dear @dug_french,

Remove the double quotes in if statement.
like
if book[‘borrower’] == borrower[‘name’]:

and also remove double quotes like
borrower_email = borrowers_list[‘email’]

you made the variable into string by adding double quotes.
book[‘borrower’] and borrower[‘name’]