Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions book/_toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ parts:
- file: modules.md
title: Modules
sections:
- file: module/modules.ipynb
- file: modules/modules.ipynb
title: Modules
- file: module/Exercises/01.ipynb
- file: modules/Exercises/01.ipynb
- file: 05/Theory/01.ipynb
sections:
- file: 05/Exercises/01.ipynb
Expand Down Expand Up @@ -108,10 +108,10 @@ parts:
sections:
- file: objects/nutshell/object.ipynb
title: Objects and References
- file: module/nutshell.md
- file: modules/nutshell.md
title: Modules
sections:
- file: module/nutshell/modules.ipynb
- file: modules/nutshell/modules.ipynb
title: Modules
- file: 04/In_a_Nutshell/01.ipynb
- file: 05/In_a_Nutshell/01.ipynb
Expand Down
11 changes: 7 additions & 4 deletions book/flow/Exercises/01.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
}
},
"source": [
"## Exercise 2.2.1\n",
"## Exercise\n",
"% was exercise 2.2.1\n",
"\n",
"One of the most crucial applications of <code>if</code> statements is filtering the data from errors and checking whether an error is within a certain limit.\n",
"\n",
Expand Down Expand Up @@ -166,7 +167,8 @@
}
},
"source": [
"## (Searching) Exercise 2.2.4\n",
"## (Searching) Exercise\n",
"% was exercise 2.2.4\n",
"\n",
"Conditional expression is a way how one can compress an <code>if</code> statement to a more compact (and logical) statement. Your task is to rewrite the below <code>if</code> statement by using the <i>'conditional expression'</i> technique."
]
Expand Down Expand Up @@ -289,7 +291,8 @@
}
},
"source": [
"## Exercise 2.4.3\n",
"## Exercise\n",
"% was exercise 2.4.3\n",
"\n",
"Here you need to write a function that is able to sort any list consisting only of real numbers, in the descending order. For example, the list $[19, 5, 144, 6]$ becomes $[144, 19, 6, 5]$. However there are three possible options to complete correctly the code where the dots `...` are placed.\n",
"\n",
Expand Down Expand Up @@ -332,7 +335,7 @@
}
},
"source": [
"## Exercise 2.4.5\n",
"## Exercise\n",
"\n",
"In this exercise you will perform <a href=\"https://en.wikipedia.org/wiki/Downsampling_(signal_processing)\">downsampling</a> of a provided 'regular' 2D list. Downsampling is a procedure where only a subset of the data is sampled (to reduce its size, for example). Below a visual aid of what downsampling of a 2D list is. Instead of using all the data available, your task is to downsample the 2D list to keep only the data of every $a$-th row and every $b$-th column, including the first element $(a_{0,0})$.<br><br>$$A = \\left[\\begin{array}{ccccc}\n",
"a_{0,0} & \\dots & a_{0,b} & \\dots & a_{0,2b} & \\dots & \\dots & a_{0,nb}\t& \\dots\\\\\n",
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/quizzes.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Prior to 2024 the book used Jupyter Quiz, which is based on JSON files. These ar
To make the change transparent, and possible support future conversion in case H5p is no longer supported, the following actions were taken:
1. A tag was added to the import statement in the Python cell, `# jupyterquiz-import`. If all exercises in a page are converted, the entire cell can be commented out (but should remain in the notebook with cell tag `remove-input`)
2. A cell containing a Jupyter Quiz exercises should have a tag of the form: `# jupyterquiz-exercise-x-y-z` where `x`, `y`, and `z` are the chapter, section, and exercise numbers (as they appeared in the original book and Jupyter Quiz question number), respectively. This tag should be added to the cell containing the exercise prompt, and the cell tag `remove-input` should remain in place.
3. H5p exercises are created and stored on the TU Delft H5P platform, accessible at https://tudelft.h5p.com/content. Each exercise is assigned a unique identifier on this platform, which is correlated with the original Jupyter Quiz exercise tags.
3. H5p exercises are created and stored on the TU Delft H5P platform, accessible at https://tudelft.h5p.com/content. Each exercise is assigned a unique identifier on this platform (format `X.Y.Z`), which is correlated with the original Jupyter Quiz exercise tags. The id's were removed from the exercise header text as they are now automatically numbered in the toc, so the `X.Y.Z` id is presered in a comment under the header.