From 5aac2be7d0e633897282ef7d85b2fc154fc9e92a Mon Sep 17 00:00:00 2001 From: Kishan-No1 <139655574+Kishan-No1@users.noreply.github.com> Date: Sun, 8 Feb 2026 04:06:51 -0800 Subject: [PATCH 01/10] Update lab_1a.py --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index 9d15ec83..25f70e24 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -8,7 +8,7 @@ def main(): print("Hello World!") - name = "" # TODO: Insert your name between the double quotes + name = "Kishan Paschapur" # TODO: Insert your name between the double quotes print(f"{name}, Welcome to the CSS course!") From 1fb6e20552cd4f302cf05db7204071d04e88ca65 Mon Sep 17 00:00:00 2001 From: Kishan-No1 <139655574+Kishan-No1@users.noreply.github.com> Date: Sun, 8 Feb 2026 04:14:46 -0800 Subject: [PATCH 02/10] Add comment for robot speed in lab_1a.py Added a comment to indicate robot speed. --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index 25f70e24..0a198246 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -1,6 +1,6 @@ """ lab_1a.py - +This is to simulate a change made on a robot: robot_speed = 5 # m/s The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. """ From 61d6113051fa018d839d573373a85fc3124d9959 Mon Sep 17 00:00:00 2001 From: Kishan-No1 <139655574+Kishan-No1@users.noreply.github.com> Date: Sun, 8 Feb 2026 04:17:23 -0800 Subject: [PATCH 03/10] Change robot speed from 5 m/s to 3 m/s --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index 0a198246..97652ea9 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -1,6 +1,6 @@ """ lab_1a.py -This is to simulate a change made on a robot: robot_speed = 5 # m/s +This is to simulate a change made on a robot: robot_speed = 3 # m/s The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. """ From ce0b4ff35a3a106e705b7cd043cd0400a626ef2e Mon Sep 17 00:00:00 2001 From: Kishan-No1 <139655574+Kishan-No1@users.noreply.github.com> Date: Sun, 8 Feb 2026 04:18:24 -0800 Subject: [PATCH 04/10] Change robot speed from 3 m/s to 2 m/s --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index 97652ea9..f24ba203 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -1,6 +1,6 @@ """ lab_1a.py -This is to simulate a change made on a robot: robot_speed = 3 # m/s +This is to simulate a change made on a robot: robot_speed = 2 # m/s The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. """ From a616a672b72fb4668950cf8d9ab5eddb7411dfe3 Mon Sep 17 00:00:00 2001 From: Kishan-No1 <139655574+Kishan-No1@users.noreply.github.com> Date: Sun, 8 Feb 2026 04:19:09 -0800 Subject: [PATCH 05/10] Update robot speed from 2 m/s to 3 m/s --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index f24ba203..97652ea9 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -1,6 +1,6 @@ """ lab_1a.py -This is to simulate a change made on a robot: robot_speed = 2 # m/s +This is to simulate a change made on a robot: robot_speed = 3 # m/s The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. """ From 27d2c2dde0fef74ab2fab357880d54c52e3f228e Mon Sep 17 00:00:00 2001 From: Kishan-No1 <139655574+Kishan-No1@users.noreply.github.com> Date: Sun, 8 Feb 2026 04:50:12 -0800 Subject: [PATCH 06/10] Update lab_1a.py --- labs/lab_1/lab_1a.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index f24ba203..3f2eafa9 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -1,6 +1,6 @@ """ lab_1a.py -This is to simulate a change made on a robot: robot_speed = 2 # m/s +This is to simulate a change made on a robot: robot_speed = 8 # m/s The first lab in the BWSI CSS course. To complete this lab, fill out the variable on line 10 with your name. Then, save the code, add it to the staging area, and commit it to the Git tree. """ From 3d7a23350acb25536017bbf7e180127674ea3735 Mon Sep 17 00:00:00 2001 From: Kishan-No1 <139655574+Kishan-No1@users.noreply.github.com> Date: Sun, 8 Feb 2026 05:10:06 -0800 Subject: [PATCH 07/10] Update lab_1b.py --- labs/lab_1/lab_1b.py | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/labs/lab_1/lab_1b.py b/labs/lab_1/lab_1b.py index e58dd957..c8068050 100644 --- a/labs/lab_1/lab_1b.py +++ b/labs/lab_1/lab_1b.py @@ -42,9 +42,27 @@ def main(): print(f"===== Simple Calculator =====") # Ask the user for sample input - num1 = float(input("Enter the first number: ")) - num2 = float(input("Enter the second number: ")) - operation = input("Enter the operation (add, subtract, multiply, divide): ").strip().lower() +while True: + try: + num1 = float(input("Enter the first number: ")) + break + except ValueError: + print("That's not a number. Please try again.") + +while True: + try: + num2 = float(input("Enter the second number: ")) + break + except ValueError: + print("That's not a number. Please try again.") + + # Ask the user for the operation + while True: + operation = input("Enter the operation (add, subtract, multiply, divide): ").lower() + if operation in ["add", "subtract", "multiply", "divide"]: + break + else: + print("Invalid operation. Please choose from 'add', 'subtract', 'multiply', or 'divide'.") # Perform the calculation and display the result result = simple_calculator(operation, num1, num2) From 7108c4b629a18e6d62502580b13a3ecb2dfd10c0 Mon Sep 17 00:00:00 2001 From: Kishan-No1 <139655574+Kishan-No1@users.noreply.github.com> Date: Sun, 8 Feb 2026 05:13:45 -0800 Subject: [PATCH 08/10] Update lab_1b.py Fixed the input handling for the Operation Function, using a while loop + try and except error handling. --- labs/lab_1/lab_1b.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/lab_1/lab_1b.py b/labs/lab_1/lab_1b.py index c8068050..99fc3809 100644 --- a/labs/lab_1/lab_1b.py +++ b/labs/lab_1/lab_1b.py @@ -59,7 +59,7 @@ def main(): # Ask the user for the operation while True: operation = input("Enter the operation (add, subtract, multiply, divide): ").lower() - if operation in ["add", "subtract", "multiply", "divide"]: + if operation == "add" or operation == "subtract" or operation == "multiply" or operation == "divide": break else: print("Invalid operation. Please choose from 'add', 'subtract', 'multiply', or 'divide'.") From c8bac40f5de19927084eaa833e5de3d3d8bc62b2 Mon Sep 17 00:00:00 2001 From: Kishan-No1 <139655574+Kishan-No1@users.noreply.github.com> Date: Wed, 18 Feb 2026 10:28:13 -0800 Subject: [PATCH 09/10] Update lab_1b.py --- labs/lab_1/lab_1b.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/labs/lab_1/lab_1b.py b/labs/lab_1/lab_1b.py index 99fc3809..d1997699 100644 --- a/labs/lab_1/lab_1b.py +++ b/labs/lab_1/lab_1b.py @@ -57,12 +57,12 @@ def main(): print("That's not a number. Please try again.") # Ask the user for the operation - while True: - operation = input("Enter the operation (add, subtract, multiply, divide): ").lower() - if operation == "add" or operation == "subtract" or operation == "multiply" or operation == "divide": - break - else: - print("Invalid operation. Please choose from 'add', 'subtract', 'multiply', or 'divide'.") +while True: + operation = input("Enter the operation (add, subtract, multiply, divide): ").lower() + if operation == "add" or operation == "subtract" or operation == "multiply" or operation == "divide": + break + else: + print("Invalid operation. Please choose from 'add', 'subtract', 'multiply', or 'divide'.") # Perform the calculation and display the result result = simple_calculator(operation, num1, num2) From f273adc746f3a85c965908872c0aef9c360c34aa Mon Sep 17 00:00:00 2001 From: Kishan-No1 <139655574+Kishan-No1@users.noreply.github.com> Date: Wed, 18 Feb 2026 10:59:04 -0800 Subject: [PATCH 10/10] Update lab_1a.py --- labs/lab_1/lab_1a.py | 1 + 1 file changed, 1 insertion(+) diff --git a/labs/lab_1/lab_1a.py b/labs/lab_1/lab_1a.py index 3f2eafa9..4ab6b4d9 100644 --- a/labs/lab_1/lab_1a.py +++ b/labs/lab_1/lab_1a.py @@ -14,3 +14,4 @@ def main(): if __name__ == "__main__": main() +# --- IGNORE --- \ No newline at end of file