Help with Module 1 graded lab question 1a

I am unable to complete the graded assignment for working with a virtual library. I write the code for the first question and when I check the code there is an error stating I did not define the “book_title” variable. I have run every cell in order so that is not the issue. I have checked the code with chatbots and it is correct. I am unable to finish this assignment and progress in the course without completing this. Can you please help

1 Like

Hmm, have you defined anywhere in the code the variable book_title = something, perhaps it needs to be outseide functions as a global variable if you have defined it somewhere!

1 Like

I have defined the variable as specified in the assignment. I checked it with a couple of chatbots and the bots verified that it’s correct. This is very disappointing. Is there anyway you can help.

1 Like

Dear @gemarino,

Welcome to the Community!

Please send me the code via DM (Direct Message).
You can do this by clicking on my name and then click Message.
Kindly note that sharing code in the community is against the code of conduct, so please do not post it here.


Keep Learning AI with DeepLearning.AI - Girijesh