Discussion in 'Python' started by jessICAbsbs, Oct 27, 2019.

  1. jessICAbsbs


    Oct 27, 2019
    Likes Received:
    How do I fix this error

    • Write/define a function area_circle that takes in the radius to calculate and return the area of a circle. (Note: You can take pi to be 3.142)

    • Write/define a function area_triangle that takes in the base and height to calculate and return the area of a triangle. (Note: Area of triangle = (base * height) /2)

    • Use the above functions to calculate the total area of the shaded region in the figure below and print the result.

    Attached Files:

    jessICAbsbs, Oct 27, 2019
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.