For doing first graded coding assignment when I run test your code an error comes up undefined:
NameError Traceback (most recent call last)
Cell In [5], 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
After you finish coding an exercise, there will be a test section that checks your work using a function called test_your_code. If everything is correct, you’ll see a message saying “All tests passed!” and you can move on. If there’s a mistake, you’ll see a red message explaining what went wrong, so you can fix it.