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?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here