An example python jupyter notebook.
Create one of these with the "New ... notebook ... python 3" menu in the jupyter browser window.
Each cell is either markdown (like this one) or python code (like those below this).
To download a copy to save and/or submit as homework, use the "File ... Download As " menu, and chose either HTML (for a file that can easily be viewed) or Notebook (.ipynb) for one that can be uploaded here and run.
You can find more help (including keyboard shortcuts) in the Help menu up above.
Jim Mahoney | cs.bennington.college | Feb 2022 | MIT License
x = 3
y = 4
print(f" {x} + {y} is {x+y}")
print("Oh, and 'hello world'")
3 + 4 is 7 Oh, and 'hello world'