Python_program 12

 Practical Name: Write a python program to exception handling in ArithmeticError.

_____________________________________________________________

Program :

try:

  arithmetic = 5/0

  print(arithmetic)

except ArithmeticError:

  print('You have just made an Arithmetic error')

 

 

 

Output:


Post a Comment

Previous Post Next Post