Skip to content

Commit 78c8ffc

Browse files
Built site for gh-pages
1 parent 50a07bc commit 78c8ffc

File tree

98 files changed

+51587
-8
lines changed

Some content is hidden

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

98 files changed

+51587
-8
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ad7bc3e8
1+
439749c8

404 4.html

Lines changed: 901 additions & 0 deletions
Large diffs are not rendered by default.

assignments/assignment_01 9.html

Lines changed: 1095 additions & 0 deletions
Large diffs are not rendered by default.

assignments/assignment_01 9.pdf

43 KB
Binary file not shown.

assignments/assignment_01.pdf

0 Bytes
Binary file not shown.

assignments/assignment_02 3.pdf

40.9 KB
Binary file not shown.

assignments/assignment_02 6.html

Lines changed: 1086 additions & 0 deletions
Large diffs are not rendered by default.

assignments/assignment_02.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ <h2 class="anchored" data-anchor-id="introduction">Introduction</h2>
485485
</section>
486486
<section id="grading-of-the-assignment" class="level2">
487487
<h2 class="anchored" data-anchor-id="grading-of-the-assignment">Grading of the Assignment</h2>
488-
<p>It is graded pass/fail and at least 50 % of the tasks in the assignments have to be passed in oder to pass the assigment. You may work in groups of up to three students and you should submit one assignment per group via email to <a href="mailto:[email protected]">[email protected]</a> before the start of Lecture 7 on scientific programming.</p>
488+
<p>It is graded pass/fail and at least 50 % of the tasks in the assignments have to be passed in oder to pass the assigment. You may work in groups of up to three students and you should submit one assignment per group via email to <a href="mailto:[email protected]">[email protected]</a> before the start of Lecture 11.</p>
489489
<p>You may use online resources and generative AI (gAI) for assistance. However, you must not copy code from other groups, and you must include a short paragraph titled <code>How I used generative AI</code> that explains where and how you used gAI.</p>
490490
<div class="callout callout-style-simple callout-tip callout-titled">
491491
<div class="callout-header d-flex align-content-center">
@@ -574,8 +574,8 @@ <h2 class="anchored" data-anchor-id="submission-format">Submission format</h2>
574574
</section>
575575
<section id="redact-secret-information" class="level1">
576576
<h1>Redact secret information</h1>
577-
<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>
578-
<div id="a08c339c" class="cell" data-execution_count="1">
577+
<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 <a href="https://beyondsimulations.github.io/Introduction-to-Python/">git repository</a> under <code>assignments/secret-text.txt</code>.</p>
578+
<div id="e982633c" class="cell" data-execution_count="1">
579579
<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>
580580
<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>
581581
<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>
@@ -584,7 +584,7 @@ <h1>Redact secret information</h1>
584584
<section id="dice-roll-simulator" class="level1">
585585
<h1>Dice roll simulator</h1>
586586
<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>
587-
<div id="aba0367f" class="cell" data-execution_count="2">
587+
<div id="233a231f" class="cell" data-execution_count="2">
588588
<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>
589589
<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>
590590
<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>
@@ -593,7 +593,7 @@ <h1>Dice roll simulator</h1>
593593
<section id="future-self-predictor" class="level1">
594594
<h1>Future Self Predictor</h1>
595595
<p>In this exercise, you will create an <strong>interactive program</strong> that predicts a users future based on his or her answers. The program should ask <strong>5 questions</strong> about users where user can either add the answers in the terminal freely or choose from a number of options. It should then generate <strong>3 entertaining predictions, and save them to a separate file with the user name as filename.</strong> The predictions should be a <strong>5-year, 10-year, and 30-year prediction of where the user is going to be in life</strong>. Note, the program should be able to <strong>handle user input errors gracefully.</strong></p>
596-
<div id="4a1bea1d" class="cell" data-execution_count="3">
596+
<div id="fcaf385a" class="cell" data-execution_count="3">
597597
<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"># Future Self Predictor</span></span>
598598
<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 predict the future.</span></span>
599599
<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>
@@ -612,7 +612,7 @@ <h1>Dashboards</h1>
612612
</div>
613613
</div>
614614
</div>
615-
<div id="91fe4f23" class="cell" data-execution_count="4">
615+
<div id="e8d26ee6" class="cell" data-execution_count="4">
616616
<div class="code-copy-outer-scaffold"><div class="sourceCode cell-code" id="cb4"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Dashboards</span></span>
617617
<span id="cb4-2"><a href="#cb4-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>
618618
<span id="cb4-3"><a href="#cb4-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

307 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)