I have error in module-1 in my code in C1M1_Assignment

When creating a post, please add:
Module-1)

  • Link to the classroom item you are referring to:
  • Description (include relevant info but please do not post solution code or your entire notebook)
  • NameError Traceback (most recent call last)
    Cell In [9], line 2
    1 # Test your code!
    ----> 2 test_your_code.exercise_1a(book_title, author, year_published, available_copies)

NameError: name ‘book_title’ is not defined

Tip:
Every time you open a notebook, you must run all of the cells starting from the top. That is where the assets are imported and the workspace is created.

1 Like

can youpost screenshot of the complete error you got?

not defined error usually occurs either because you didn’t run down a code mentioning book_title or when you defined book_title code, you might have defined the code incorrectly as per my understanding

that section required you to first mention

book_title = Name of the book

then in the next exercise you needed to use f’string to defined Book Title = {book_title}

In the above code if you have placed f’string correctly, you error should resolve

I did not t run all of the cells starting from the top.

Hi @jajarvin,

Are your issues resolved or are you still facing them?

Best,
Mubsi