subject

can someone turn this into pseudo code plz i don’t understand

import turtle

def main():

t = turtle. turtle()

speed = input(" fast or slow? ")
if(speed == "y"):
gofast(t)
else:
goslow(t)

def gofast(t):
t. speed(50)
def goslow(t):
t. speed(5)

color = input(" whats better red or yellow for red say r for yellow say y ")
if(color == "y"):
drawsquarer(t)
else:
drawsquare(t)

roofcolor = input(" what color you want your roof red or yellow? ")
if(roofcolor == "red"):
redroof(t)
else:
yellowroof(t)

def drawsquare(t):
# square color red

t. color("red")

for side in range(4):

t. forward(100)

t. left(90)

def drawsquarer(t):
# square color yellow

t. color("yellow")

for side in range(4):

t. forward(100)

t. left(90)

#drawroof color red
def redroof(t):
t. color("red")
t. penup()
t. setpos(0, 100)
t. pendown()
t. left(40)
t. forward(71)
t. right(85)
t. forward(71)

#drawroof color red

def yellowroof(t):
t. color("yellow")
t. penup()
t. setpos(0, 100)
t. pendown()
t. left(40)
t. forward(71)
t. right(85)
t. forward(71)

main()

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Lisa’s company, abc ltd., lost its biggest client and is now facing a financial crunch. most of her colleagues have resigned, but lisa decides to stay with the company and assist the management in overcoming the financial situation. which quality is lisa demonstrating? a. self-management b. cooperativeness c. responsibility d. loyalty
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
You can apply several different worksheet themes from which tab?
Answers: 1
question
Computers and Technology, 23.06.2019 19:50
Which feature is selected to practice and save the timing of a presentation
Answers: 1
You know the right answer?
can someone turn this into pseudo code plz i don’t understand

import turtle

...
Questions
question
Mathematics, 17.06.2021 04:50
Questions on the website: 13722367