I completed the assignment according to the guidelines:
I received the following message after submiting the assignment as follows:
There was a problem compiling the code from your notebook, please check that you saved before submitting. Details:
unterminated triple-quoted string literal (detected at line 75) (, line 73)
The import test_your_code does not seem to be importing.
Under Exercise 1: Book Information:
The test your code code did not compile.
Error: NameError 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 âbook_titleâ is not defined
Under Exercise 1-B: Print Statements:
The information did not compile
Error: NameError Traceback (most recent call last)
Cell In [4], line 4
1 ### START CODE HERE ###
2
3 # Print the Title: book_title
using an f-string
----> 4 print(f"Title: {book_title}â)
6 # Print the Author: author
using an f-string
7 print(f"Author: {author}â)
NameError: name âbook_titleâ is not defined
Under Exercise 2: Checking Out a Book
The information did not compile:
Error: ---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In [3], line 2
1 # Test your code!
----> 2 test_your_code.exercise_2(available_copies)
NameError: name âavailable_copiesâ is not defined
Under ---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In [3], line 2
1 # Test your code!
----> 2 test_your_code.exercise_2(available_copies)
NameError: name âavailable_copiesâ is not defined
The information did not compile
Error: ---------------------------------------------------------------------------
NameError Traceback (most recent call last)
Cell In [4], line 2
1 # Test your code!
----> 2 test_your_code.exercise_3(requested_book)
NameError: name ârequested_bookâ is not defined
I entered the help section, and chose Get Latest Version.
I used the coach to test my code.