Python for Everybody book (HTML version with jupyter notebook) not allowing me to run examples?

I just started the Scientific Computing with Python course and want to reference the textbook version which is HTML with examples in Jupyter Notebook. I have both python and jupyter notebook installed. When I type code into the example boxes to check my work, I get an error saying that the python session has failed and am not able to successfully execute the code. Does anybody know how to fix this/what I’m doing wrong here? Thanks!

Link to book: 2.E: Variables, Expressions, and Statements (Exercises) - Engineering LibreTexts

That seems to be a problem with the site though.
Just use your own Jupyter notebook or other Python IDE and it should work.