Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. def int_mult(no1,no2):
  2. try:
  3. no3 = int(no1)
  4. no3 = int(no2)
  5. except ValueError:
  6. return print("Error: Invalid Argument Type")
  7. no1 = int(round(no1))
  8. no2 = int(round(no2))
  9. return (no1 * no2)
  10.  
  11.  
  12.  
  13. print (int_mult(4.49,"apple"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement