Question
need in python: here is the program to modify import turtle wn = turtle.Screen() # Set up the window and its attributes wn.bgcolor(lightgreen) tess =
need in python:
here is the program to modify
import turtle wn = turtle.Screen() # Set up the window and its attributes wn.bgcolor("lightgreen")
tess = turtle.Turtle() # create tess and set some attributes tess.color("hotpink") tess.pensize(5)
alex = turtle.Turtle() # create alex
tess.forward(80) # Let tess draw an equilateral triangle tess.left(120) tess.forward(80) tess.left(120) tess.forward(80) tess.left(120) # complete the triangle
tess.right(180) # turn tess around tess.forward(80) # move her away from the origin
alex.forward(50) # make alex draw a square alex.left(90) alex.forward(50) alex.left(90) alex.forward(50) alex.left(90) alex.forward(50) alex.left(90)
wn.exitonclick()
Copy the program from Section 4.3 into a file on your computer and modify the program to have a 'cyan' background, tess color "red", and let tess draw a pentagon instead of a triangle and alex draw a triangle instead of a square: aStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started