generated from mwc/lab_names
7.30.23 7.22.23 Completed file: circle_area.py Checkpoint 1: circle_area.py I don't recall the original file information because of the errors submitting. I believe the coding was to add pi #, add code to get circle area, and print circle_area. Once you input number for circle radius, circle_area.py formulates the answer.
15 lines
237 B
Python
15 lines
237 B
Python
from turtle import *
|
|
|
|
def square(side_length):
|
|
forward(side_length)
|
|
right(90)
|
|
forward(side_length)
|
|
right(90)
|
|
forward(side_length)
|
|
right(90)
|
|
forward(side_length)
|
|
right(90)
|
|
|
|
square(100)
|
|
square(80)
|
|
square(60) |