This lesson's interactive features are locked, please to keep using them
Let's start ackshually building "bookbot"! Here are some things you'll need to know how to do for this step:
A with block can be used to open a file:
with open(path_to_file) as f:
# do something with f (the file) here
The with block will automatically close the file when the block is exited, cleaning up resources.
You can use the .read() method to read the contents of a file into a string:
# f is a file object
file_contents = f.read()
python3 main.py
Run and submit the CLI tests.