SHARE
TWEET

Untitled

a guest Jan 20th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def area(a=0, b=0, c=0):
  2.     if a+b > c and abs(a-b) < c:
  3.         s = (a+b+c)/2
  4.         area  = ((s*(s-a)*(s-b)*(s-c))**0.5
  5.         return area
  6.     else:
  7.         return -1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top