lentinjoseph

pyoverflow testing code

Jul 3rd, 2016
12,651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. import pyoverflow
  4.  
  5. a = input("Enter first number")
  6.  
  7. b = input("Enter second number")
  8.  
  9.  
  10. try:
  11.     div = a/b
  12.     print div
  13.  
  14. except Exception as e:
  15.     #Error message and number of solutions
  16.     pyoverflow.submit_err(str(e),2)
  17.  
  18. #Wait for the magic :)
Advertisement
Add Comment
Please, Sign In to add comment