Download (right-click, save target as ...) this page as a jupyterlab notebook from:

Laboratory 0-HW


Laboratory 0 - Homework: Yes, That's how we count in python!

LAST NAME, FIRST NAME

R00000000

ENGR 1330 Laboratory 0 - Homework


Exercise 1

Watch the Harvard computational thinking video https://www.youtube.com/watch?v=jjqgP9dpD1k&t=12s

At some poiont in the video, the instructor programs a virtual cat to meow. Then he programs a cat to meow repeatedly. What kind of programming construct is the video presenting at this point (they state the structure while demonstrated)

put your **answer here**, change the cell to a Markdown Cell and run it.

Exercise 2

Visit Jupyter Notebook: An Introduction, https://realpython.com/jupyter-notebook-introduction/ and examine the contents.

In the section Running Cells the author presents something similar to "hello world".
Run the example in Jupyter Notebook: An Introduction in the cell below

# Put the Python code in this cell (change cell type to Code) and run it

Exercise 3

Continuing with Jupyter Notebook: An Introduction In the section Headers the author presents an example of different header levals (it is the first example in the section).

Repeat the example in the cell below, be sure its a markdown cell and run it - you should get results similar to the example in the document.

# put the example here - 3 lines, (change cell type to Markdown) and run it

Readings

Driscoll, M. (2021) Jupyter Notebook: An Introduction, https://realpython.com/jupyter-notebook-introduction/