Question: in python, You have a square garden and want to build a fence around it. Write a program in Python that calculates the total meter

in python,

You have a square garden and want to build a fence around it. Write a program in Python that calculates the total meter of fence you will need to surround the garden.

You program should

prompt the user to enter the area of the square garden. Store the area in a variable named area. Hint: The side of the square is equal to the square root of the area of the garden.

calculates how many meters of fence you will need to surround the garden. Hint: You have to calculate the perimeter of the square garden. Store the perimeter into a variable named total_fence

Note: Submit your code with the print( "You will need ", total_fence , " meters" ) statement.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!