This is for practicing with Jupyter notebooksΒΆ
There are two types of cells: Markdown cells and Code cells.
This is a Markdown cell. You can use this to a write an introdution to what the notebook is about, or to write description for your code fragment below and what it does, etc.
Task 1: Create a Markdown cell
1) Create a new MARKDOWN cell below
2) Type whatever you want in the new cell!
Task 2: Editing a Markdown cell
Practice editing a Markdown cell. You can double click to edit, and then press ESCAPE to stop editing.
Here is a practice cell you can edit.
Next, we have a code cell. Execute it now by pressing SHIFT-ENTER
print('This is a code cell')
Task 3: Code cell
1) Create a new CODE cell below
2) Copy the print statement from the cell above
3) Change it to print "This is MY code cell"
Task 4: Practice with running code and restarting the kernel
1) Execute the different cells below.
2) Restart the kernel. Skip excuting the "a=2" cell, and then execute the rest. Observe what happens.
a = 2
a = 4
b = 1
a + b
5