What will be the output of the given code? >>>try: x=int(input(“first number:”) y=int input(“second number:”) result=x/y print”result=”,result exceptZeroDivisionError: print “division by zero” else:...


What will be the output of the given code?


>>>try:


x=int(input(“first number:”) y=int


input(“second number:”) result=x/y print”result=”,result exceptZeroDivisionError:


print “division by zero” else:


print “successful division”


What is finally block? What is the syntax for try…finally block?




May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here