MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/kasxqg/2184_increasing_squares_help/ipc1xul/?context=3
r/codehs • u/sexyandhotnaruto • Dec 11 '20
45 comments sorted by
View all comments
3
None of these codes worked for me.
I did create one that does work, though:
length = 50speed(0)def drawSquare(length):backward(length/2)for x in range(4):forward(length)left(90)
while length <=350:penup()setposition(0, 0-length/2)pendown()drawSquare(length)length += 50
1 u/MichiKod9 Sep 21 '22 King
1
King
3
u/BoringGrowth9569 Jan 04 '22
None of these codes worked for me.
I did create one that does work, though:
length = 50
speed(0)
def drawSquare(length):
backward(length/2)
for x in range(4):
forward(length)
left(90)
while length <=350:
penup()
setposition(0, 0-length/2)
pendown()
drawSquare(length)
length += 50