After correctly defining variables for line one tap Shift + Enter, I select line two, tap Shift + Enter and get the following error:
NameError Traceback (most recent call last)
Cell In [3], line 2
1 # Test your code!
----> 2 test_your_code.exercise_1a(book_title, author, year_published, available_copies)
NameError: name 'test_your_code' is not defined
Chatbot reports the following:
test_your_code
as something that has been defined or imported in your code.
When and where do I import or define test_your_code.exercise_1a
??
This is having a downstream affect:
but I am getting a name error.
print(f"Title: {book_title}")
print(f"Author: {author}")
print(f"Published: {year_published}")
print(f"Available Copies: {available_copies}")
But I am getting the following error:
NameError: name 'available_copies' is not defined