Skip to content

Commit

Permalink
Expand the Summary section of the the lesson 2 preparation content.
Browse files Browse the repository at this point in the history
  • Loading branch information
barzeer committed Sep 25, 2024
1 parent 643c191 commit 9e489cf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
16 changes: 15 additions & 1 deletion docs/lesson02/prepare.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"educationalUse": "instruction",
"copyrightNotice": "Copyright © 2019, Brigham Young University–Idaho. All rights reserved.",
"datePublished": "2019-11-20",
"dateModified": "2022-12-09"
"dateModified": "2024-09-25"
}
</script>
</head>
Expand Down Expand Up @@ -561,6 +561,20 @@ <h2 id="summary">Summary</h2>
</pre></div>
</div></li>
</ol>

<p>In this lesson, you also learned how to use named arguments when
calling a function. Here is a short example that calls the
<code>math.isclose</code> function and uses the <code>abs_tol</code>
named argument at <span class="cross" data-ref="ex9">line&nbsp;5</span>.</p>
<div class="example" id="ex9"><pre class="linenums"></pre>
<pre class="python">import math

x = float(input("Please enter a number: "))
y = float(input("Please enter another number: "))
if math.isclose(x, y, <strong>abs_tol=0.001</strong>):
print(f"{x} and {y} are nearly equal or equal.")
else:
print(f"{x} and {y} are not close to each other.")</pre></div>
</article>
</body>
</html>
16 changes: 6 additions & 10 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/lesson01/prepare.html</loc>
<lastmod>2023-01-16</lastmod>
<lastmod>2024-05-24</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/lesson01/prove.html</loc>
<lastmod>2022-01-06</lastmod>
<lastmod>2023-01-06</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/lesson01/teach.html</loc>
Expand All @@ -34,7 +34,7 @@
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/lesson02/prepare.html</loc>
<lastmod>2022-12-09</lastmod>
<lastmod>2024-09-25</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/lesson02/prove.html</loc>
Expand All @@ -48,10 +48,6 @@
<loc>https://byui-cse.github.io/cse111-course/lesson03/check.html</loc>
<lastmod>2023-01-06</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/lesson03/draw2d.html</loc>
<lastmod>2022-12-08</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/lesson03/prepare.html</loc>
<lastmod>2023-02-27</lastmod>
Expand Down Expand Up @@ -154,7 +150,7 @@
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/lesson09/file_setup.html</loc>
<lastmod>2022-12-09</lastmod>
<lastmod>2022-12-08</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/lesson09/prepare.html</loc>
Expand Down Expand Up @@ -230,14 +226,14 @@
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/overview/help.html</loc>
<lastmod>2022-12-07</lastmod>
<lastmod>2023-01-07</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/overview/search.html</loc>
<lastmod>2023-03-16</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/cse111-course/overview/syllabus.html</loc>
<lastmod>2023-01-06</lastmod>
<lastmod>2024-04-05</lastmod>
</url>
</urlset>

0 comments on commit 9e489cf

Please sign in to comment.