Page 1 of 1

You are required to use try-except, exception handling statement in the correct position to avoid ZeroDivisionError. Mod

Posted: Fri Jul 08, 2022 6:37 am
by answerhappygod
You are required to use try-except, exception handling statementin the correct position to avoid ZeroDivisionError. Modify thefollowing code snippet to insert the try-except statement in thecorrect place and print “You can’t divide with 0” instead of anerror.
a=5b=0result=a/bprint(result)