diff --git a/docs/lesson02/prepare.html b/docs/lesson02/prepare.html index 3abc52c..4a62ad1 100644 --- a/docs/lesson02/prepare.html +++ b/docs/lesson02/prepare.html @@ -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" } @@ -561,6 +561,20 @@

Summary

+ +

In this lesson, you also learned how to use named arguments when + calling a function. Here is a short example that calls the + math.isclose function and uses the abs_tol + named argument at line 5.

+

+
import math
+
+x = float(input("Please enter a number: "))
+y = float(input("Please enter another number: "))
+if math.isclose(x, y, abs_tol=0.001):
+    print(f"{x} and {y} are nearly equal or equal.")
+else:
+    print(f"{x} and {y} are not close to each other.")
diff --git a/docs/sitemap.xml b/docs/sitemap.xml index e048b32..4aee49a 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -18,11 +18,11 @@ https://byui-cse.github.io/cse111-course/lesson01/prepare.html - 2023-01-16 + 2024-05-24 https://byui-cse.github.io/cse111-course/lesson01/prove.html - 2022-01-06 + 2023-01-06 https://byui-cse.github.io/cse111-course/lesson01/teach.html @@ -34,7 +34,7 @@ https://byui-cse.github.io/cse111-course/lesson02/prepare.html - 2022-12-09 + 2024-09-25 https://byui-cse.github.io/cse111-course/lesson02/prove.html @@ -48,10 +48,6 @@ https://byui-cse.github.io/cse111-course/lesson03/check.html 2023-01-06 - - https://byui-cse.github.io/cse111-course/lesson03/draw2d.html - 2022-12-08 - https://byui-cse.github.io/cse111-course/lesson03/prepare.html 2023-02-27 @@ -154,7 +150,7 @@ https://byui-cse.github.io/cse111-course/lesson09/file_setup.html - 2022-12-09 + 2022-12-08 https://byui-cse.github.io/cse111-course/lesson09/prepare.html @@ -230,7 +226,7 @@ https://byui-cse.github.io/cse111-course/overview/help.html - 2022-12-07 + 2023-01-07 https://byui-cse.github.io/cse111-course/overview/search.html @@ -238,6 +234,6 @@ https://byui-cse.github.io/cse111-course/overview/syllabus.html - 2023-01-06 + 2024-04-05