Help needed ameError Traceback (most recent call last) Cell In [2], 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

I still have a problem with module 1 coding exercise with ameError Traceback (most recent call last)
Cell In [2], 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

I did it firs and I failed even if my code was correct I still have an issue with test your code

f you want to test your code using the test_your_code function, make sure you have access to the file or module where this function is defined. You might need to import it at the beginning of your script if it’s part of a separate module.

If you’re still unsure, I recommend reaching out to your instructor or classmates to get more information about the testing setup.

However, from the code snippet you’ve provided, book_title is clearly defined.
If the error persists, consider reaching out to your instructor or classmates for additional support, as they might have more context on the testing framework being used.
This is from the coach online I really have a issue

Solved

1 Like