Skip to content
Snippets Groups Projects
Commit 522cbb35 authored by Jöran Frey's avatar Jöran Frey
Browse files

Added Exercise

parent 59ad761e
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id:becc5c8b tags:
# Exercise 1: Jupyter Notebooks
## Introduction to Jupyter Notebooks
Try out different cell types, including code and markdown cells.
%% Cell type:markdown id:4cd048de tags:
### 1: Markdown cells
%% Cell type:markdown id:f9f4a25b tags:
#### 1.1 Headers in Markdown
Implement Mardown code to implement 4 header levels name the different levels 1 to 4 <br>
Create 4 header levels using Markdown. Each header should be labeled as "Level 1", "Level 2", "Level 3", and "Level 4", corresponding to the Markdown syntax for headers.<br>
%% Cell type:markdown id:4e959eae tags:
%% Cell type:markdown id:9778cbbe tags:
#### 1.2 Text formatting in Markdown
Write the following words with the desired formatting using a line break between each word <br>
A word printed **in bold**: “Word1” <br>
One word printed in *italics*: “Word2” <br>
One ~~strikethrough~~ word: “Word3” <br>
One ___italic and bold word___: “Word4” <br>
%% Cell type:markdown id:b0a6b08a tags:
%% Cell type:markdown id:189de41f tags:
#### 1.3 Tables in Markdown
Create a table with three columns and three rows that contains the profiles of three individuals, including their name, age, and profession.
Create a table with three columns and three rows that contains the profiles of three individuals, including their name, age, and profession. <br>
Use the extension **"Nice Tables"** for this
1. To download the extension, open the Extensions Menu on the left side of your Markdown editor.
2. Search for "Nice Tables" and install it.
3. Once installed, use it to create the table structure and fill it with the appropriate data.
4. Open the Command Menu with CTRL + SHIFT + P.
5. Search for "Text Tables: Create Table".
6. Enter the desired table size. You can navigate between cells using the Tab key. The size of the cells should adjust automatically.
%% Cell type:markdown id:80a329a0 tags:
%% Cell type:markdown id:e3d789bd tags:
#### 1.4 Mathematical formulas in Markdown
Insert the formula for calculating the volume of a sphere from a radius <br>
> here a Cheat sheet that can help: https://www.upyesp.org/posts/makrdown-vscode-math-notation/
Example midnight formula:
x = $\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$
%% Cell type:markdown id:4845547f tags:
%% Cell type:markdown id:303a067d tags:
#### 1.5 Images in Markdown
Add any image in Markdown and add a hyperlink with the URL matching the image<br>
#### 1.5 Links and Images
##### 1.5.1 Web Images
Add any image from the web in Markdown and add a hyperlink with the URL matching the image<br>
%% Cell type:markdown id:be12e31e tags:
##### 1.5.2 local Images
Add an image to the project by first creating a new folder named Pictures inside the week_1 folder. Place the image file in this folder and update the Markdown file with a relative link to the image, ensuring the link works regardless of where the project is saved or moved.
> To make sure the link works universally, use a relative path like (./week_1/Pictures/image_name.jpg)" instead of an absolute path.
%% Cell type:markdown id:87c4eef8 tags:
%% Cell type:markdown id:d4878f98 tags:
#### 1.6 Lists
##### 1.6.1 numbered lists
Create an ordered list as shown in the example below
1. First item
2. Second item
3. Third item
1. Indented item
2. Indented item
4. Fourth item
<br>
<br> <br>
The list should consist of two main items fruits and vegetables, with sub-items of fruits being bananas and apples and sub-items of vegetables being carrots and potatoes
%% Cell type:markdown id:5795b9c2 tags:
%% Cell type:markdown id:68f111de tags:
##### 1.6.1 Bulletpoint lists
Create an unordered list with bullet points with Point 1 Point 2
%% Cell type:markdown id:91106711 tags:
%% Cell type:markdown id:81e4c706 tags:
1.7 Quotes
Make the sentence below a quotation <br>
Programming is the art of telling another human being what one wants the computer to do.
%% Cell type:markdown id:177f1a55 tags:
%% Cell type:markdown id:97ae5c25 tags:
#### 2: Code Cells
%% Cell type:markdown id:432de469 tags:
#### 2.1 Hello world!
Next insert a code cell which displays hello world!
%% Cell type:markdown id:77f74fb5 tags:
%% Cell type:markdown id:bc1be52c tags:
#### 3: First step in Python
%% Cell type:markdown id:d4cc568a tags:
Create a Python program that performs the following arithmetic operations using two variables ``a`` and ``b``
- Addition
- Subtraction
- Multiplication
- Division
%% Cell type:code id:4fdc25ef tags:
``` python
a = 10
b = 5
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment