Advertisement
simeonshopov

Triangle Area (functions/book)

Nov 14th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. def triangle_area(lenght, height):
  2.   return (lenght * height) / 2
  3.  
  4. a = float(input())
  5. h = float(input())
  6. area = triangle_area(a, h)
  7. print(f"{str(area)}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement