Run
a = 3 b = 0 c = 0 try: c = a/b except ZeroDivisionError: print('b is zero. Correct the value or your logic.') print(c)
Output