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

Explain the developement of modern technology?

Help please
I need correct and appropriate answer.

Answers

Answer:

Explanation:

How Is Modern Technology Affecting Human Development? The internet and digital technology may be impacting our physical and psychological development to a larger degree than we expected.

In the last few decades, technology has progressed at a staggering rate. Smartphones, the internet, cloud computing, and hundreds of other inventions are changing every facet of our lives. Communication, business, government, travel, fundraising, and even agriculture have been affected. But how about our brains? Is all this new technology changing us on the inside? Many think so, including psychology professionals.

As Psychology Today says, “There is … little doubt that all of the new technologies, led by the Internet and digital technology, are shaping the way we think in ways obvious and subtle, deliberate and unintentional, and advantageous and detrimental.”* While research into this field is still in its infancy and there are no scientifically agreed-upon conclusions, there are several areas where modern digital technology is certainly affecting the way we interact with the world and the way our children’s brains develop. These areas include:

The development of modern technology is rapidly increasing in a very unpredictable way. In some ways one would never thought to be possible, but in some ways still haven't really changed at all.

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

What kind of power does Tesla Model S, 3 X, and Y use?


A: Electricity only

B: Both gas/diesel and electricity

C: Just gas/diesel

Note: There is only one correct answer.

Answers

A

That is it for that
answer is a, as tesla only uses electricity since it is an electric vehicle !

can someone help me im using python IDLE and im getting this message in the output what does this mean "Error: unindent does not match any outer indentation level"

Answers

Answer:

Indent the first line

Explanation:

In many types of coding, the process does not work until you indent the first line. If it is a few rows in programs such as loops many more indentations maybe needed.

Answer:

Indent the first line

Explanation:

In many types of coding, the process does not work until you indent the first line. If it is a few rows in programs such as loops many more indentations maybe needed.

Other Questions
Which is a desirable characteristic when choosing a line of credit?a. rewards programb. annual feec. amount of down paymentd. amount of collateral Help! Pls Im struggling Read the passage from a letter that President Jimmy Carter wrote to Congress in 1977.This message brings together a great variety of programs. It deals not only with ways to preserve the wilderness, wildlife, and natural and historical resources which are a beautiful and valued part of America's national heritage: it deals also with the effects of pollution, toxic chemicals, and the damage caused by the demand for energy. Each of these concerns, in its own way, affects the environment; and together they underscore the importance of environmental protection in all our lives.Which statement best describes the overall claim?The wilderness and the rest of nature contain beauty and value for all Americans.Pollution and the amount of energy people use have negative effects on the environment.Americans have many concerns about the environment and how it is being affected.Protecting the environment is essential for maintaining Americans quality of life. Partial tides _______. Question 7 options: represent various components of local tides that are resolved mathematically are predicted individually are added together to predict the height and timing of astronomical tides All of the above are correct. Only a and c are correct. Look at this painting. It belongs to which artistic movement?A. RomanticismB. Impressionism Vit li cu They cancelled all the flights because of fog. =>All the flights. .. Which propaganda technique is being used in the following statement? "My opponent is not a good choice to be class president because he doesn't like hard work." answer needed ASAPA. StereotypingB. GeneralityC. None, this statement is not propagandaD. Assertion please answer urgently you dont need to explain it If AFB and DFE are congruent, what term describes BFE and AFD? Bryan works as a salesman for Jumbo Corp. Last year his sales target was $3 million. This year in an aggressive bid for growth, the company increased the sales quota for all its sales people to $5 million, although the market for Jumbo Corps products had slowed. In order to meet his target, Bryan bribed an official of a potential customer. The roots of his unethical behavior can be traced to 1. Write three different solutions of 4x - 2y = 8. plzz answer fast On a map, two mountains are 5 7/8 inches apart. If 1/2 of an inch on the map represents 80 miles, then how many miles apart Urgent need the answers plz help. Which of the following factors played the greatest role in creating the conditions Thomas Nast criticizes in the political cartoon The Union as It Was?The repeal of the racist black codes by the Northern-dominated Congress following the Civil WarThe unsuccessful congressional effort to impeach Andrew Johnson for his stance on civil rightsThe Southern refusal to abandon notions of white supremacy following the Civil WarRadical Republicans' refusal to allow any former Confederate states to reenter the Union Whats the name of this compound? g In order to stimulate the renin-angtiotensin-aldosterone system (RAAS), _______________ cells in the kidney detect _______________blood pressure which causes ________________ to be released from the juxtaglomerular cells. For anything to be considered money it must be Group of answer choices either a commodity or a token, as long as it is generally accepted as a means of payment. a valuable commodity, such as gold. a token, such as a green piece of paper. used in barter transactions Using the order of operations, what is the last calculation that should be done to evaluate 4(8 - 6952 - 6+(-3)4(8 - 6352 6 + (-3)4(2)52 - 6+(-3)4(2)(25) - 6+(-3)200 - 6+(-3)200 - (-2) jenny with two dogs.......walking in the park now. (-4/9)*3(-27/20)*4=