Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def func (num1, num2):
- try:
- return num1 / num2
- except(TypeError, ValueError) as error:
- raise error
- print(func(1, "4"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement