Advertisement
atm-irbis

Division by zero (fake)

Mar 17th, 2013
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. a = 4
  2. b = 0
  3.  
  4. def DivisionZero(a,b):
  5.     try:
  6.         return a/b
  7.     except:
  8.         return 10
  9.  
  10. print DivisionZero(4,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement