fix: corrected syntax errors in problem-01
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user