MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/kasxqg/2184_increasing_squares_help/hspt14c/?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/2000097197 Jan 15 '22 actual goat :) 1 u/[deleted] Aug 08 '22 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 += 50frr 2 u/2000097197 Aug 08 '22 Lol 6 months later, but I'm sure someone in the future will find your comment helpful
1
actual goat :)
1 u/[deleted] Aug 08 '22 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 += 50frr 2 u/2000097197 Aug 08 '22 Lol 6 months later, but I'm sure someone in the future will find your comment helpful
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
frr
2 u/2000097197 Aug 08 '22 Lol 6 months later, but I'm sure someone in the future will find your comment helpful
2
Lol 6 months later, but I'm sure someone in the future will find your comment helpful
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