Skip to content

Commit 609add2

Browse files
fixed mistake in tutorial 1
1 parent a3f41b8 commit 609add2

28 files changed

+335
-335
lines changed

docs/part-01/lecture-introduction.html

Lines changed: 31 additions & 31 deletions
Large diffs are not rendered by default.
-2 Bytes
Binary file not shown.

docs/part-01/lecture-presentation.html

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

docs/part-01/tutorial-introduction.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ <h2 class="anchored" data-anchor-id="tutorials-vs-assignments">Tutorials vs Assi
275275
<section id="basic-string-operations" class="level1">
276276
<h1>Basic String Operations</h1>
277277
<p>In this exercise, we’ll explore basic string operations in Python. Strings are one of the most common data types in programming, and Python provides a variety of ways to manipulate them. We’ll practice concatenation (joining strings together), indexing (accessing individual characters), slicing (extracting portions of a string), finding the length of a string, and string repetition.</p>
278-
<div id="a495d732" class="cell" data-execution_count="1">
278+
<div id="1c73ffbb" class="cell" data-execution_count="1">
279279
<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"># a) Concatenation</span></span>
280-
<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">: Concatenate " is fun!" to the 'text' variable</span></span>
280+
<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">: Concatenate "Python" and " is fun!" in the 'text' variable</span></span>
281281
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="co"># Print the result</span></span>
282282
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="co"># Your code here</span></span>
283283
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a></span>
@@ -301,7 +301,7 @@ <h1>Basic String Operations</h1>
301301
<section id="formatted-output" class="level1">
302302
<h1>Formatted Output</h1>
303303
<p>In this exercise, we’ll practice using formatted output in Python. Formatted output allows us to present information in a structured and visually appealing way. We’ll use f-strings (formatted string literals) to create a simple receipt for a coffee shop purchase. This exercise will help you understand how to align text, format numbers, and create a clean, readable output.</p>
304-
<div id="bc82e890" class="cell" data-execution_count="2">
304+
<div id="c85e5dc9" class="cell" data-execution_count="2">
305305
<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"># </span><span class="al">TODO</span><span class="co">: Create a receipt for a coffee shop purchase</span></span>
306306
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="co"># Use the following information:</span></span>
307307
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>item1 <span class="op">=</span> <span class="st">"Cappuccino"</span></span>
@@ -343,7 +343,7 @@ <h1>Formatted Output</h1>
343343
<section id="arithmetic-operations" class="level1">
344344
<h1>Arithmetic Operations</h1>
345345
<p>In this exercise, we’ll practice using arithmetic operations in Python to solve several real-world problems. These calculations will help you understand how to apply basic mathematical operations in programming and how to use variables to store and manipulate numerical data. We’ll cover temperature conversion, geometric calculations, financial computations, and time calculations.</p>
346-
<div id="d6656b06" class="cell" data-execution_count="3">
346+
<div id="9e3ee0f4" class="cell" data-execution_count="3">
347347
<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"># a) Temperature Converter</span></span>
348348
<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">: Convert 98.6°Fahrenheit to Celsius</span></span>
349349
<span id="cb3-3"><a href="#cb3-3" aria-hidden="true" tabindex="-1"></a><span class="co"># Formula: (°F - 32) * 5/9</span></span>
@@ -373,7 +373,7 @@ <h1>Arithmetic Operations</h1>
373373
<section id="bmi-calculator" class="level1">
374374
<h1>BMI Calculator</h1>
375375
<p>In this exercise, we’ll create a simple Body Mass Index (BMI) calculator. BMI is a measure that uses your height and weight to work out if your weight is healthy (although it has its limitations). The BMI is calculated by dividing a person’s weight (in kilograms) by the square of their height (in meters). This exercise will reinforce your understanding of arithmetic operations, user input, and string formatting while introducing you to a real-world health metric calculation.</p>
376-
<div id="4794a32d" class="cell" data-execution_count="4">
376+
<div id="18dd2d2a" class="cell" data-execution_count="4">
377377
<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"># </span><span class="al">TODO</span><span class="co">: Implement a BMI calculator</span></span>
378378
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="co"># Ask for weight in kg</span></span>
379379
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="co"># Ask for height in meters</span></span>
3 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)