Computers and Technology

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()

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:40, jacelee17631
Write c function that can replace all the positive elements to 0 and negative to 1 in undefined length one-dimensional array. test your program in the main program by defining one-dimensional array of 6 elements
Answers: 1
image
Computers and Technology, 22.06.2019 16:00, sdonachy7
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
image
Computers and Technology, 23.06.2019 16:30, 19thomasar
How to do this programming flowchart?
Answers: 3
image
Computers and Technology, 24.06.2019 10:00, shrafe
Which two technologies support the building of single-page applications?
Answers: 2
Do you know the correct answer?
can someone turn this into pseudo code plz i don’t understand

import turtle

...

Questions in other subjects:

Konu
Mathematics, 14.12.2021 17:50
Konu
English, 14.12.2021 17:50
Konu
Social Studies, 14.12.2021 17:50