Solutions

Hello Notebook!

Type the lines of the exercise into empty cells - you can insert new cells using the Insert menu in the toolbar at the top.

In [5]:
a = "Hello"
In [6]:
b = "Notebook!"
In [7]:
print(a,b)
Hello Notebook!

Be careful to make sure that any cells you use are code cells, and not markdown cells (more on those below).

Once you've run the first lines of code, you should be able to go back to those lines and change the content in the cells to be:

In [8]:
a = "Goodbye"
In [9]:
b = "Everyone"
In [10]:
print(a,b)
Goodbye Everyone

However, you shouldn't need to create new cells to do this - change the assignment in the original two cells instead.

Mastering markdown

You can achieve everything in the exercise with the following code:

### Level 3 Heading
[hyperlink](https://www.google.co.uk)

- bullet
- point
- list

![](./path/to/image.png)

code `keyword`
# block of code with python syntax highlighting
for k in range(10):
    print(k, 'Hello World!')

The final code block is displayed using three backticks ``` , but we use markdown to produce this material, so we can't show all the possible syntax here!