Hello, My code for excercise 1a, module 1 programming assignment is correct but it’s showing an error (name ‘book_title’ is not defined). I don’t know what else to do.
I am not sure why you claim your code is correct, if it is throwing an error.
Dear @Zealous,
The variable book_title
has not been assigned. It is possible that the corresponding cell was not executed.
or send me code via personal message.
My code is indeed correct. If you read my complaint properly, you would realise that I specified the exact error that i received, (name ‘book_title’ is not defined).
This was because I did not run the cell that had the ‘book_title’. I was able to figure it out later.
Hi @Girijesh, thank you very much for your response and for offering to help. You’re right. The corresponding cell was not executed. I didn’t realise that I had to run all the cells before printing the code. I was able to figure it out after several tries.