Write a Python program that makes a turtle draw the shape below, which consists of 8 squares in a row:

Answers

Answer 1

Answer:

import turtle

window = turtle.Screen()

turtle.speed(0)

turtle.pensize(5)

def draw_square():

   times_drawn = 0

   

   # position on the 'x' access.

   x = -350

   

   # while the amount of times drawn is less than or equal to 8 the square gets drawn.

   while times_drawn <= 8:

       

       # increases the 'x' value by 75.

       x += 75

       times_drawn += 1

       turtle.penup()

       turtle.goto(x, 0)

       turtle.pendown()

       turtle.color("black")

       

       # for loop that draws the square.

       for i in range(4):

           turtle.forward(50)

           turtle.left(90)

       turtle.penup()

draw_square()

turtle.done()

Explanation:


Related Questions

Write at least complete set of HTML code to hyperlink to “Home.html”..

Answers

Answer:

HTML Link Colors

By default, a link will appear like this (in all browsers):

An unvisited link is underlined and blue

A visited link is underlined and purple

An active link is underlined and red

You can change the link state colors, by using CSS:

Answer:

<!DOCTYPE html>

Explanation:

Why do you lose internet access when you alter the arp to a static address?

Answers

sometimes you lose internet access because by altering the arp to a static address, there is change during that so u usually lose the i internet access [ hope i’m right ]

Answer:

Explanation:

Theres a change in connectyion

Other Questions
Which of the following expressions is equal to x2 +25?O A. (x+10)(x-15)O B. (x-51)(x+51)OC.-512O D. (x+5)Will give brainyliest answer Find the general solution for:-[tex]sin\:x \:cos\: 3x+cos\:x\: sin\:3x=tan140[/tex]~Please show your work~Thank you! What type of Syntax does Wordsworth use in every stanza and how does it affect the rhythm and mood in every stanza?I wandered lonely as a cloud That floats on high o'er vales and hills, When all at once I saw a crowd, A host, of golden daffodils; Beside the lake, beneath the trees, Fluttering and dancing in the breeze.Continuous as the stars that shine And twinkle on the milky way, They stretched in never-ending line Along the margin of a bay: Ten thousand saw I at a glance, Tossing their heads in a sprightly dance.The waves beside them danced; but they Out-did the sparkling waves in glee: A poet could not but be gay, In such a jocund company: I gazedand gazedbut little thought What wealth the show to me had brought:For oft, when on my couch I lie In vacant or in pensive mood, They flash upon that inward eye Which is the bliss of solitude; And then my heart with pleasure fills, And dances with the daffodils. If d= the number of dogs ,which variable expression represents the phase below? The sun of the number of dogs and the 6 cats Calculating Weighted Average Cost of Capital and Economic Value Added (EVA)Ignacio, Inc., had after-tax operating income last year of $1,196,500. Three sources of financing were used by the company: $2 million of mortgage bonds paying 4 percent interest, $4 million of unsecured bonds paying 6 percent interest, and $9 million in common stock, which was considered to be relatively risky (with a risk premium of 8 percent). The rate on long-term treasuries is 4 percent. Ignacio, Inc., pays a marginal tax rate of 30 percent.Required:Calculate the after-tax cost of each method of financing. Enter your answers as decimal values rounded to three places. For example, 4.36% would be entered as ".044".Mortgage bonds __________ Unsecured bonds __________ Common stock __________ Match each term with its correct definition.propheta religious figure who has come todeliver a message from GodBedouinmoving from place to place ratherthan living in a permanent settlementnomadicthe act of being obedient, oraccepting the authority of anothera member of an Arab tribal peoplesubmission At a large Midwestern university, a simple random sample of 100 entering freshmen in 1993 found that 20 of the sampled freshmen finished in the bottom third of their high school class. Admission standards at the university were tightened in 1995. In 1997, a simple random sample of 100 entering freshmen found that only 10 finished in the bottom third of their high school class. Let p 1 and p 2 be the proportions of all entering freshmen in 1993 and 1997, respectively, who graduated in the bottom third of their high school class. What is a 90% plus four confidence interval for p 1 p 2? Calculate the mean of the following list of numbers: 10, 12, 7, 9, 9, 11, 15, 9PLEASE HELP!!!!99.510.6710.25 4. Which equations have 4 as a possible solution for p? Select all that apply. A. p= 8 B.p= 8 c.p= 16 D.p= 64 E.p=64 Help memememememe please science historian thomas kuhn has said that de revolutionibus was a revolution-making book but not a revolutionary book. how was that book in some ways both classical and conservative What does Scout admire about Miss Maudie? chapter 4-7 I can't find it please help Which of the following describe management's use of a master budget: Multiple select question. Helps in determining bonuses to managers who meet budgets Helps analyze differences between actual and budgeted results Helps to place blame on managers who do not meet budgets Helps reveal undesirable outcomes Helps in planning and control activities g(x) = f(x+1) using f(x)= x to the power of 2 find the composition of transformations that map ABCD to EHGF.Reflect over the (y) -axis then translate (x+?,y+?) Which were the first two political parties in the United States?A. The Federalists and the RepublicansB. The Republicans and the WhigsC. The Federalists and the Anti-FederalistsD. The Federalists and the Whigs Find the value of x in each case:Please help meIt's an easy 40 points if you answer this Do babies get bruces when they bump their forehead? Which of the following is TRUE about the unambiguity of the genetic code?A.Every codon is specific for its one amino acid.B.One codon codes for 1 to 4 amino acidsC.A genetic code represents only two amino. acids at a time.D. Unambiguity is not seen in all organisms. The volume of the triangular prism is 54 cubic units.What is the value of x?5943