Write a Python program that asks for the user input to draw a circle that\'s cen
ID: 3875474 • Letter: W
Question
Write a Python program that asks for the user input to draw a circle that's centered on a canvas.
The program:
asks for the height of the canvas
asks for the width of the canvas
asks for the radius of the circle
asks for the color of the circle border
asks for the color of the fill color
draws the circle with the correct colors and size, centered in the canvas
prints the color and the area of the circle as a text string, with the text string being 20 pixels down from the bottom of the circle and 20 pixels left of the left side of the circle. See sample output.
The formula for the area of a circle is , where pi can be imported from the math module. The area of the circle should be printed with 2 digits after the decimal point.
Explanation / Answer
You can further write text as below in the particular x y coordinates calculated:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.