Skip to content

Commit a7207d7

Browse files
committed
added comment
1 parent 1627354 commit a7207d7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

labs/lab_1/lab_1b.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def simple_calculator(operation: str, num1: float, num2: float) -> float:
3838
raise ValueError("Invalid operation. Please choose from 'add', 'subtract', 'multiply', or 'divide'.")
3939

4040
def request_sanitized_number(prompt: str) -> float:
41+
#make sure no error when user enters something other than number
4142
while True:
4243
try:
4344
number = float(input(prompt))

0 commit comments

Comments
 (0)