fix: corrected syntax errors in problem-01

This commit is contained in:
baphim
2026-09-12 20:09:48 -04:00
parent 43de8dc79c
commit 42b8628b73
7 changed files with 40 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# Write a Python program to handle a ZeroDivisionError exception when dividing a number by zero
def divide(x, y)
def divide(x, y):
try:
# try to divide the provided values and store in variable: answer
answer = x / y