Change your code below to create a pattern using nested loops. Your initial needs to appear at least eight times in the pattern and pattern doesn't matter. import turtle # Setting background color screen = turtle.Screen() screen.bgcolor("skyblue") #drawing letter 'M' in color dark blue turtle.penup() turtle.pensize(9) turtle.color("dark blue") turtle.goto(-300,200) turtle.pendown() turtle.right(90) turtle.forward(300) turtle.backward(300) turtle.left(45) turtle.forward(200) turtle.left(90) turtle.forward(200) turtle.right(135) turtle.forward(300) turtle.backward(300) # adding space between M and P turtle.left(90) turtle.penup() turtle.forward(100) turtle.pendown() #drawing letter 'P' in color green turtle.pensize(8) turtle.color("green") turtle.right(90) turtle.forward(300) turtle.backward(150) turtle.left(90) turtle.circle(75,extent=180) turtle.don
Change your code below to create a pattern using nested loops. Your initial needs to appear at least eight times in the pattern and pattern doesn't matter.
import turtle
# Setting background color
screen = turtle.Screen()
screen.bgcolor("skyblue")
#drawing letter 'M' in color dark blue
turtle.penup()
turtle.pensize(9)
turtle.color("dark blue")
turtle.goto(-300,200)
turtle.pendown()
turtle.right(90)
turtle.forward(300)
turtle.backward(300)
turtle.left(45)
turtle.forward(200)
turtle.left(90)
turtle.forward(200)
turtle.right(135)
turtle.forward(300)
turtle.backward(300)
# adding space between M and P
turtle.left(90)
turtle.penup()
turtle.forward(100)
turtle.pendown()
#drawing letter 'P' in color green
turtle.pensize(8)
turtle.color("green")
turtle.right(90)
turtle.forward(300)
turtle.backward(150)
turtle.left(90)
turtle.circle(75,extent=180)
turtle.done
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images