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 19:30
When creating a presentation in libre office impress, where does the editing of slides take place? a. the slides panel b. the center panel c. the tasks panel, under the masters pages tab d. the tasks panel, under the layouts tab
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
question
Computers and Technology, 24.06.2019 09:10
  to change the number of rows and columns displayed by the excel object a. select the object and drag a size handle on the active object. b. deselect the object and drag a size handle of the object. c. deselect the object and drag a row or column divider of the object. d. select the object and drag a row or column divider on the active object.
Answers: 2
question
Computers and Technology, 24.06.2019 23:00
People should never use telepresence when virtually meeting with a group of co-workers. true false
Answers: 1
You know the right answer?
can someone turn this into pseudo code plz i don’t understand

import turtle

...
Questions
question
English, 13.10.2020 07:01
question
Mathematics, 13.10.2020 07:01
question
Mathematics, 13.10.2020 07:01
question
Mathematics, 13.10.2020 07:01
question
Mathematics, 13.10.2020 07:01
question
Mathematics, 13.10.2020 07:01
question
Mathematics, 13.10.2020 07:01
Questions on the website: 13722367