Skip to content

Commit 487e1f2

Browse files
Built site for gh-pages
1 parent 4b107ae commit 487e1f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1683
-2218
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
53c45cc9
1+
3038ec9f

assignments/assignment_01.html

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -484,29 +484,26 @@ <h1>Introduction</h1>
484484
<section id="tax-refund-for-donations" class="level1">
485485
<h1>Tax refund for donations</h1>
486486
<p>In this excercise, you will create a program that is able to calculate the amount of tax a person can get back for a donation. First, research the rules for tax refunds for donations in Germany. Then, create a program that is able to <strong>calculate the amount of tax a person can get back</strong> for a donation. The program should ask the user for the <strong>amount of the donation and the yearly income</strong> and then calculate the amount of tax the user can get back. The program should then print the amount of tax to the console. Note, that the program should also handle wrong inputs from the user, e.g.&nbsp;if the user enters a negative donation amount or a non-numeric income.</p>
487-
<div id="fb357bf2" class="cell" data-execution_count="1">
487+
<div id="049bd0bd" class="cell" data-execution_count="1">
488488
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Tax refund for donations</span></span>
489489
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="co"># </span><span class="al">TODO</span><span class="co">: Create a program that is able to calculate the amount of tax a person can get back for a donation.</span></span>
490490
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co"># Your code here</span></span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
491491
</div>
492-
<div class="callout callout-style-default callout-tip callout-titled">
493-
<div class="callout-header d-flex align-content-center">
492+
<div class="callout callout-style-simple callout-tip">
493+
<div class="callout-body d-flex">
494494
<div class="callout-icon-container">
495495
<i class="callout-icon"></i>
496496
</div>
497-
<div class="callout-title-container flex-fill">
498-
Tip
499-
</div>
500-
</div>
501-
<div class="callout-body-container callout-body">
497+
<div class="callout-body-container">
502498
<p>Use the <code>input()</code> function to get user input in order to let the user interact with your program.</p>
503499
</div>
504500
</div>
501+
</div>
505502
</section>
506503
<section id="text-based-adventure-game" class="level1">
507504
<h1>Text based adventure game</h1>
508505
<p>In this excercise, you will create a text based adventure game. You are completely free in the choice of the story, but it must <strong>at least include 3 choices, 2 different endings and the choice to restart the game</strong>. Try to use the concepts of conditionals, loops, and functions to create a game that is both fun and interactive for the user. Note, that the program should also handle wrong inputs from the user, e.g.&nbsp;if the user enters a choice that is not available.</p>
509-
<div id="4ca648af" class="cell" data-execution_count="2">
506+
<div id="2967dad9" class="cell" data-execution_count="2">
510507
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Test based adventure game</span></span>
511508
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="co"># </span><span class="al">TODO</span><span class="co">: Create a text based adventure game with at least 3 choices, 2 different endings and the choice to restart the game.</span></span>
512509
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="co"># Your code here</span></span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
@@ -515,7 +512,7 @@ <h1>Text based adventure game</h1>
515512
<section id="hangman" class="level1">
516513
<h1>Hangman</h1>
517514
<p>In this excercise, you will create a program that is able to play the game Hangman. The program should ask the <strong>game master for a secret word</strong>. Afterward, it should ask the player to guess a letter and then check if the letter is in the word. The program should then print the word with the guessed letters and the number of tries left. The program should also handle wrong inputs from the user, e.g.&nbsp;if the user enters a non-letter or a letter that is already guessed.</p>
518-
<div id="72cfa339" class="cell" data-execution_count="3">
515+
<div id="eb9552bd" class="cell" data-execution_count="3">
519516
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Hangman</span></span>
520517
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="co"># </span><span class="al">TODO</span><span class="co">: Create a program that is able to play the game Hangman with a game master and one player.</span></span>
521518
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="co"># Your code here</span></span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>

assignments/assignment_01.pdf

0 Bytes
Binary file not shown.

assignments/assignment_02.html

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ <h1>Introduction</h1>
484484
<section id="redact-secret-information" class="level1">
485485
<h1>Redact secret information</h1>
486486
<p>In this excercise, you will create a program that is able to redact secret information in a text. The program should be able to redact the following: <strong>zip codes, names, email addresses and phone numbers.</strong> The program should ask the user <strong>for a filename</strong> and then read the file and <strong>redact the secret information</strong>. The program should then print the redacted text to the console and write it to a new file called <code>redacted.txt</code>. You can find a file with secret information in the git repository under <code>assignments/secret-text.txt</code>.</p>
487-
<div id="ff362ee7" class="cell" data-execution_count="1">
487+
<div id="1b4c068d" class="cell" data-execution_count="1">
488488
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb1"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Secret information redactor</span></span>
489489
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="co"># </span><span class="al">TODO</span><span class="co">: Create a program that is able to redact secret information in a text.</span></span>
490490
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co"># YOUR CODE HERE</span></span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
@@ -493,7 +493,7 @@ <h1>Redact secret information</h1>
493493
<section id="dice-roll-simulator" class="level1">
494494
<h1>Dice roll simulator</h1>
495495
<p>In this excercise, you will create a program that is able to simulate dice rolls and visualizes their distribution. The program should ask the user for <strong>the number of sides on the dice and the number of dices to roll</strong>. Then, the program should simulate the dice rolls 10000 times and <strong>visualize the distribution</strong> of the dice rolls using a histogram.</p>
496-
<div id="f7e7cd61" class="cell" data-execution_count="2">
496+
<div id="afd42475" class="cell" data-execution_count="2">
497497
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Dice roll simulator</span></span>
498498
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="co"># </span><span class="al">TODO</span><span class="co">: Create a program that is able to simulate a dice roll.</span></span>
499499
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="co"># YOUR CODE HERE</span></span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
@@ -502,20 +502,17 @@ <h1>Dice roll simulator</h1>
502502
<section id="dashboards" class="level1">
503503
<h1>Dashboards</h1>
504504
<p>In this exercise, you will create a program that visualizes a data set of your choice in a dashboard. For this excercise, you can choose any data set of your interest. The data should be visualized in a dashboard with at least two plots. You can use one of the dashboard libraries we discussed in the lecture.</p>
505-
<div class="callout callout-style-default callout-note callout-titled">
506-
<div class="callout-header d-flex align-content-center">
505+
<div class="callout callout-style-simple callout-note">
506+
<div class="callout-body d-flex">
507507
<div class="callout-icon-container">
508508
<i class="callout-icon"></i>
509509
</div>
510-
<div class="callout-title-container flex-fill">
511-
Note
512-
</div>
513-
</div>
514-
<div class="callout-body-container callout-body">
510+
<div class="callout-body-container">
515511
<p>The dashboard should be programmed in a separate file I can call for evaluation.</p>
516512
</div>
517513
</div>
518-
<div id="3759e091" class="cell" data-execution_count="3">
514+
</div>
515+
<div id="128fd05c" class="cell" data-execution_count="3">
519516
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb3"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Dashboards</span></span>
520517
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="co"># </span><span class="al">TODO</span><span class="co">: Create a program that visualizes a data set of your choice in a dashboard.</span></span>
521518
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="co"># YOUR CODE HERE</span></span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>

assignments/assignment_02.pdf

0 Bytes
Binary file not shown.

general/cheatsheet.pdf

0 Bytes
Binary file not shown.

general/faq.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -463,19 +463,16 @@ <h3 class="anchored" data-anchor-id="how-can-i-download-pdf-slides-from-the-lect
463463
<li>Then, click on <code>Tools</code> in the upper left corner.</li>
464464
<li>Now you can select <code>PDF Export Mode</code> and then save the slides as a PDF.</li>
465465
</ol>
466-
<div class="callout callout-style-default callout-note callout-titled">
467-
<div class="callout-header d-flex align-content-center">
466+
<div class="callout callout-style-simple callout-note">
467+
<div class="callout-body d-flex">
468468
<div class="callout-icon-container">
469469
<i class="callout-icon"></i>
470470
</div>
471-
<div class="callout-title-container flex-fill">
472-
Note
473-
</div>
474-
</div>
475-
<div class="callout-body-container callout-body">
471+
<div class="callout-body-container">
476472
<p>Unfortunately, this method does not work perfectly on all browsers. If you have a Chrome based browser, you should be fine.</p>
477473
</div>
478474
</div>
475+
</div>
479476
</section>
480477
</section>
481478
<section id="how-does-the-chatbot-work" class="level2">

general/faq.pdf

0 Bytes
Binary file not shown.

general/literature.pdf

0 Bytes
Binary file not shown.

general/privacy.pdf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)