diff --git a/circle_area.py b/circle_area.py index c4bace9..ce45303 100644 --- a/circle_area.py +++ b/circle_area.py @@ -3,4 +3,9 @@ # By MWC Contributors print("This program will calculate the area of a circle.") -radius = float(input("5)) +radius = float(input("What is the circle's radius? ")) + +pi= 3.141592653 +circle_area= pi*radius*radius + +print (circle_area) diff --git a/shapes.py b/shapes.py index 731ec39..012fdbd 100644 --- a/shapes.py +++ b/shapes.py @@ -5,7 +5,25 @@ from turtle import * def triangle(side_length): - pass + + forward(side_length) + left(120) + forward(side_length) + left(120) + forward(side_length) + left(120) -def rectangle(height, width): - pass +def rectangle(height, width): + forward(width) + left(90) + forward(height) + left(90) + forward(width) + left(90) + forward(height) + left(90) + + + + +## Write a function for each of these to draw the shapes. \ No newline at end of file