diff --git a/circle_area.py b/circle_area.py index 513d6f7..e437630 100644 --- a/circle_area.py +++ b/circle_area.py @@ -4,3 +4,6 @@ print("This program will calculate the area of a circle.") 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 new file mode 100644 index 0000000..e69de29 diff --git a/shapes.py b/shapes.py index 731ec39..90824f1 100644 --- a/shapes.py +++ b/shapes.py @@ -5,7 +5,21 @@ from turtle import * def triangle(side_length): - pass + forward(side_length) + right(120) + forward(side_length) + right(120) + forward(side_length) + right(120) + def rectangle(height, width): - pass + forward (height) + right(90) + forward (width) + right (90) + forward (height) + right(90) + forward (width) + right (90) + diff --git a/shapes.pyc b/shapes.pyc new file mode 100644 index 0000000..3573027 Binary files /dev/null and b/shapes.pyc differ