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.
26 lines
290 B
Python
26 lines
290 B
Python
from turtle import *
|
|
|
|
def square():
|
|
forward(100)
|
|
right(90)
|
|
forward(100)
|
|
right(90)
|
|
forward(100)
|
|
right(90)
|
|
forward(100)
|
|
right(90)
|
|
|
|
square()
|
|
penup()
|
|
forward(120)
|
|
pendown()
|
|
square()
|
|
penup()
|
|
forward(120)
|
|
pendown()
|
|
square()
|
|
penup()
|
|
forward(120)
|
|
pendown()
|
|
square()
|