Write a function named 'area' that accepts the base and height of a right-angled triangle as two arguments and returns the area of that triangle (see diagram above). Include python code that tests the new function.

Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)
1st Edition
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Chapter7: Input And Output: Extending Capabilities Of Computers And Mobile Devices
Section: Chapter Questions
Problem 6MC
icon
Related questions
Question

Write a function named 'area' that accepts the base and height of a right-angled triangle as two arguments and returns the area of that triangle (see diagram above).

Include python code that tests the new function.

Leg
Hypotenuse
(Height)
Area
Leg (Base)
Transcribed Image Text:Leg Hypotenuse (Height) Area Leg (Base)
Area of Right Triangle
x Base x Height
2
%3D
--
Transcribed Image Text:Area of Right Triangle x Base x Height 2 %3D --
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Types of Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage