Which of the following statement is true?
a,b= 56,0
try:
a/b
except ZeroDivisionError:
print("Hello")
except SyntaxError:
print("Hi")
except ValueError:
print("Okay")
else:
print("Bye")
1
Hello
2
Hi
3
Okay
4
Bye
Which of the following statement is true?
a,b= 56,0
try:
a/b
except ZeroDivisionError:
print("Hello")
except SyntaxError:
print("Hi")
except ValueError:
print("Okay")
else:
print("Bye")