Skip to content

Commit 2d75fc3

Browse files
fixed typo
1 parent 039de5f commit 2d75fc3

18 files changed

+7
-19
lines changed
4 Bytes
Binary file not shown.
-1 Bytes
Binary file not shown.

docs/part-02/lecture-control.pdf

5 Bytes
Binary file not shown.

docs/part-02/tutorial-control.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ <h1>Introduction</h1>
304304
<section id="decoding-secret-messages-with-methods" class="level1">
305305
<h1>Decoding secret messages with methods</h1>
306306
<p>In this exercise, we’ll practice string manipulation and slicing. You’ll work with a secret message encoded using various string operations and learn how to apply some new methods like <code>title()</code>, <code>replace()</code> and <code>count()</code>. By following a series of steps, you’ll gradually decode the message. Let’s begin with the encoded message and work through each decoding step:</p>
307-
<div id="d304784b" class="cell" data-execution_count="1">
307+
<div id="1f8f3042" class="cell" data-execution_count="1">
308308
<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"># Decode a secret message by following a series of instructions.</span></span>
309309
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="co"># Each instruction requires you to use different operations and methods.</span></span>
310310
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co"># The encoded message is:</span></span>
@@ -347,7 +347,7 @@ <h1>Decoding secret messages with methods</h1>
347347
<section id="classifying-temperatures" class="level1">
348348
<h1>Classifying temperatures</h1>
349349
<p>In this exercise, we’ll practice using conditional statements to classify temperatures into different categories. We’ll create a program that takes a temperature input from the user and provides a classification based on the temperature range. This exercise will help you understand how to use if-elif-else statements, handle user input, and implement a simple loop for program repetition.</p>
350-
<div id="6a83d6b9" class="cell" data-execution_count="2">
350+
<div id="731fe794" class="cell" data-execution_count="2">
351351
<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"># Use if-elif-else statements to classify the temperature</span></span>
352352
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="co"># Below 0: "Freezing"</span></span>
353353
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a><span class="co"># 0-10: "Cold"</span></span>
@@ -359,7 +359,7 @@ <h1>Classifying temperatures</h1>
359359
<span id="cb2-9"><a href="#cb2-9" aria-hidden="true" tabindex="-1"></a><span class="co"># Your code here</span></span>
360360
<span id="cb2-10"><a href="#cb2-10" aria-hidden="true" tabindex="-1"></a></span>
361361
<span id="cb2-11"><a href="#cb2-11" aria-hidden="true" tabindex="-1"></a><span class="co"># b) </span><span class="al">TODO</span><span class="co">: Test your code with -5, 15 and 35 as temperature</span></span>
362-
<span id="cb2-12"><a href="#cb2-12" aria-hidden="true" tabindex="-1"></a><span class="co"># Your code has to be placed above the code from the previous task</span></span>
362+
<span id="cb2-12"><a href="#cb2-12" aria-hidden="true" tabindex="-1"></a><span class="co"># Hint: You dont't need any new code here, just run the code from the previous step with different inputs.</span></span>
363363
<span id="cb2-13"><a href="#cb2-13" aria-hidden="true" tabindex="-1"></a></span>
364364
<span id="cb2-14"><a href="#cb2-14" aria-hidden="true" tabindex="-1"></a><span class="co"># c) </span><span class="al">TODO</span><span class="co">: Add a feature that asks the user if they want to continue and then repeats the programm if they type "yes". </span></span>
365365
<span id="cb2-15"><a href="#cb2-15" aria-hidden="true" tabindex="-1"></a><span class="co"># If the user does not want to continue, the programm should end.</span></span>
@@ -369,7 +369,7 @@ <h1>Classifying temperatures</h1>
369369
<section id="number-guessing-game" class="level1">
370370
<h1>Number guessing game</h1>
371371
<p>In this exercise, we’ll create an interactive number guessing game for two players. This game will help you practice using loops, conditional statements, and user input handling. You’ll also learn how to implement a simple game logic and manage player turns. This exercise will reinforce your understanding of control structures and basic development concepts in Python.</p>
372-
<div id="59c8a04b" class="cell" data-execution_count="3">
372+
<div id="5401b6ad" class="cell" data-execution_count="3">
373373
<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"># Create a number guessing game with 2 players. The first player is the game master and the second player is the guesser. </span></span>
374374
<span id="cb3-2"><a href="#cb3-2" aria-hidden="true" tabindex="-1"></a><span class="co"># Start by asking for their names. Then, ask the game master to input the secret number between 1 and 20. </span></span>
375375
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="co"># Make sure, that the number is not printed! Then, ask the player to guess the number. </span></span>

docs/part-02/tutorial-control.pdf

38 Bytes
Binary file not shown.

docs/part-03/lecture-functions.pdf

1 Byte
Binary file not shown.
0 Bytes
Binary file not shown.
4 Bytes
Binary file not shown.

docs/part-05/lecture-errors.pdf

-6 Bytes
Binary file not shown.

docs/part-06/lecture-modules.pdf

7 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)