Need help in AP4B. Tried 1st assignment C1M1 Assignment. Name error: cell In[2], line 2… name "book_title " is not define. My 1st line of code reads: book_title = “Brave New World”. I have had this name error since the 1st lecture practice exercises and never solved it. I notice that cell 1 still shows as blank.
hi @harcoleman
Kindly post screenshot of the error you are encountering. make sure not to post any codes you wrote as it is against community guidelines to post any codes which grade your assignment.
Regards
DP
After you edited the cell, did you press <Shift-Enter>
to run the code?
Thank you for ressponding. Same problem when I ran the the test code again
In a message dated 12/28/2024 11:37:47 PM Eastern Standard Time, notifications@dlai.discoursemail.com writes:
In a message dated 12/28/2024 11:25:21 PM Eastern Standard Time, notifications@dlai.discoursemail.com writes:
(attachments)
{mentor edit: attached image of code removed}
based on the screenshot you shared, seems the cell where you wrote the code you didn’t run down but the test cell you have run down.
Remember after you write codes, you are also suppose run that cell first, and then the test cell code. as code recall in the grade cell will be recalled, the test cell will run successfully.
Also avoid sharing screenshot which includes grade cell codes ( cells where you wrote codes) as it is against community guidelines. only post screenshot of the error you got. Codes can be shared by personal DM.
In Module 3, lesson 1 keep getting name error. Following along in lecture and keep running each cell. Chatbot said to define Name. I thought already defined by instructor in llm.
please post screenshot of the error without posting any part of codes
In a message dated 1/14/2025 4:49:50 PM Eastern Standard Time, notifications@dlai.discoursemail.com writes:
Tip:
Every time you open a notebook, you have to run all of the cells starting from the top. That is where all of the assets are imported and the workspace is configured.
adding to what the other mentor mentioned. @harcoleman if you notice all your error mentioned not defined.
So basically it states the previous code cell where you might have recalled email code or function, was not run down or code not written correctly, so if you missed a single cell in between where one of the code was not called or defined, the subsequent will keep throwing not defined error.
Such confusion can happen, if your kernel got disconnected or you closed the browser while working on assignment and tried reopening the assignment and start from the cell you were working.
So as the mentor mentioned, everytime you open an assignment or re-do an assignment, after you start the kernel, you need to run each cell one by one until the end to prevent getting not defined errors.
Hope this clears your doubt.
Please feel free to ask any doubt.
Thank you very much. I have had that problem since starting with deeplearning. I have never finished a practice without coming back either later or a later date to complete.