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
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)
a=5b=0result=a/bprint(result)