Skip to content

Commit 9cb9682

Browse files
Built site for gh-pages
1 parent 1fd888b commit 9cb9682

File tree

75 files changed

+568
-580
lines changed

Some content is hidden

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

75 files changed

+568
-580
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9a84d4aa
1+
73248069

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
<li class="sidebar-item">
387387
<div class="sidebar-item-container">
388388
<a href="/Introduction-to-Python/general/uv.html" class="sidebar-item-text sidebar-link">
389-
<span class="menu-text">Install Python</span></a>
389+
<span class="menu-text">Installing Python</span></a>
390390
</div>
391391
</li>
392392
<li class="sidebar-item">

assignments/assignment_01.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@
421421
<li class="sidebar-item">
422422
<div class="sidebar-item-container">
423423
<a href="../general/uv.html" class="sidebar-item-text sidebar-link">
424-
<span class="menu-text">Install Python</span></a>
424+
<span class="menu-text">Installing Python</span></a>
425425
</div>
426426
</li>
427427
<li class="sidebar-item">
@@ -484,7 +484,7 @@ <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="6d8f55a9" class="cell" data-execution_count="1">
487+
<div id="705f4f11" 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>
@@ -506,7 +506,7 @@ <h1>Tax refund for donations</h1>
506506
<section id="text-based-adventure-game" class="level1">
507507
<h1>Text based adventure game</h1>
508508
<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="6331520e" class="cell" data-execution_count="2">
509+
<div id="118598f4" class="cell" data-execution_count="2">
510510
<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>
511511
<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>
512512
<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 +515,7 @@ <h1>Text based adventure game</h1>
515515
<section id="hangman" class="level1">
516516
<h1>Hangman</h1>
517517
<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="ec5d3339" class="cell" data-execution_count="3">
518+
<div id="1666bf2b" class="cell" data-execution_count="3">
519519
<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>
520520
<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>
521521
<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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@
421421
<li class="sidebar-item">
422422
<div class="sidebar-item-container">
423423
<a href="../general/uv.html" class="sidebar-item-text sidebar-link">
424-
<span class="menu-text">Install Python</span></a>
424+
<span class="menu-text">Installing Python</span></a>
425425
</div>
426426
</li>
427427
<li class="sidebar-item">
@@ -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="322b53c0" class="cell" data-execution_count="1">
487+
<div id="b87d378f" 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="debd3c74" class="cell" data-execution_count="2">
496+
<div id="603bc596" 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>
@@ -515,7 +515,7 @@ <h1>Dashboards</h1>
515515
<p>The dashboard should be programmed in a separate file I can call for evaluation.</p>
516516
</div>
517517
</div>
518-
<div id="48ae8450" class="cell" data-execution_count="3">
518+
<div id="b66575e9" class="cell" data-execution_count="3">
519519
<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>
520520
<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>
521521
<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.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@
422422
<li class="sidebar-item">
423423
<div class="sidebar-item-container">
424424
<a href="../general/uv.html" class="sidebar-item-text sidebar-link">
425-
<span class="menu-text">Install Python</span></a>
425+
<span class="menu-text">Installing Python</span></a>
426426
</div>
427427
</li>
428428
<li class="sidebar-item">
@@ -1235,14 +1235,11 @@ <h2 class="anchored" data-anchor-id="regular-expressions-re">Regular Expressions
12351235
<section id="package-management" class="level2">
12361236
<h2 class="anchored" data-anchor-id="package-management">Package Management</h2>
12371237
<div class="code-copy-outer-scaffold"><div class="sourceCode" id="cb32"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb32-1"><a href="#cb32-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Installing packages</span></span>
1238-
<span id="cb32-2"><a href="#cb32-2" aria-hidden="true" tabindex="-1"></a><span class="ex">pip</span> install package_name</span>
1239-
<span id="cb32-3"><a href="#cb32-3" aria-hidden="true" tabindex="-1"></a><span class="ex">pip</span> install package1 package2</span>
1238+
<span id="cb32-2"><a href="#cb32-2" aria-hidden="true" tabindex="-1"></a><span class="ex">uv</span> add package_name</span>
1239+
<span id="cb32-3"><a href="#cb32-3" aria-hidden="true" tabindex="-1"></a><span class="ex">uv</span> add package1 package2</span>
12401240
<span id="cb32-4"><a href="#cb32-4" aria-hidden="true" tabindex="-1"></a></span>
1241-
<span id="cb32-5"><a href="#cb32-5" aria-hidden="true" tabindex="-1"></a><span class="co"># Upgrading packages</span></span>
1242-
<span id="cb32-6"><a href="#cb32-6" aria-hidden="true" tabindex="-1"></a><span class="ex">pip</span> install <span class="at">--upgrade</span> package_name</span>
1243-
<span id="cb32-7"><a href="#cb32-7" aria-hidden="true" tabindex="-1"></a></span>
1244-
<span id="cb32-8"><a href="#cb32-8" aria-hidden="true" tabindex="-1"></a><span class="co"># List installed packages</span></span>
1245-
<span id="cb32-9"><a href="#cb32-9" aria-hidden="true" tabindex="-1"></a><span class="ex">pip</span> list</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
1241+
<span id="cb32-5"><a href="#cb32-5" aria-hidden="true" tabindex="-1"></a><span class="co"># Remove packages</span></span>
1242+
<span id="cb32-6"><a href="#cb32-6" aria-hidden="true" tabindex="-1"></a><span class="ex">uv</span> remove package_name</span></code></pre></div><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></div>
12461243
</section>
12471244
<section id="best-practices-5" class="level2">
12481245
<h2 class="anchored" data-anchor-id="best-practices-5">Best Practices</h2>

general/cheatsheet.pdf

-86 Bytes
Binary file not shown.

general/faq.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
<li class="sidebar-item">
387387
<div class="sidebar-item-container">
388388
<a href="../general/uv.html" class="sidebar-item-text sidebar-link">
389-
<span class="menu-text">Install Python</span></a>
389+
<span class="menu-text">Installing Python</span></a>
390390
</div>
391391
</li>
392392
<li class="sidebar-item">

general/faq.pdf

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)