Skip to main content
Commonmark migration
Source Link

##Python 2/3, 169 167 150 111 98 78 Bytes

Python 2/3, 169 167 150 111 98 78 Bytes

Note that the import is not included in the byte count, according to the challenge specs.

Thanks to @AlexHall for saving 39(!) bytes and @nedla2004 for another 13

from turtle import* o=[90] for z in o*9:o+=[90]+[-x for x in o[::-1]] fd(5) for i in o:rt(i);fd(5) 

Starts by generating a list or right (90) and left (-90) turns, then goes through the list and moves the turtle.

Generated Output: enter image description here

EDIT: If this is too boring too watch, add speed(0) right before the first fd(5). It will run the same, except the turtle will move much faster.

##Python 2/3, 169 167 150 111 98 78 Bytes

Note that the import is not included in the byte count, according to the challenge specs.

Thanks to @AlexHall for saving 39(!) bytes and @nedla2004 for another 13

from turtle import* o=[90] for z in o*9:o+=[90]+[-x for x in o[::-1]] fd(5) for i in o:rt(i);fd(5) 

Starts by generating a list or right (90) and left (-90) turns, then goes through the list and moves the turtle.

Generated Output: enter image description here

EDIT: If this is too boring too watch, add speed(0) right before the first fd(5). It will run the same, except the turtle will move much faster.

Python 2/3, 169 167 150 111 98 78 Bytes

Note that the import is not included in the byte count, according to the challenge specs.

Thanks to @AlexHall for saving 39(!) bytes and @nedla2004 for another 13

from turtle import* o=[90] for z in o*9:o+=[90]+[-x for x in o[::-1]] fd(5) for i in o:rt(i);fd(5) 

Starts by generating a list or right (90) and left (-90) turns, then goes through the list and moves the turtle.

Generated Output: enter image description here

EDIT: If this is too boring too watch, add speed(0) right before the first fd(5). It will run the same, except the turtle will move much faster.

import is free according to challenge description
Source Link
mbomb007
  • 23.6k
  • 7
  • 66
  • 143

##Python 2/3, 169 167 150 111 9898 78 Bytes

Note that the import is not included in the byte count, according to the challenge specs.

Thanks to @AlexHall for saving 39(!) bytes and @nedla2004 for another 13

from turtle import* o=[90] for z in o*9:o+=[90]+[-x for x in o[::-1]] fd(5) for i in o:rt(i);fd(5) 

Starts by generating a list or right (90) and left (-90) turns, then goes through the list and moves the turtle.

Generated Output: enter image description here

EDIT: If this is too boring too watch, add speed(0) right before the first fd(5). It will run the same, except the turtle will move much faster.

##Python 2/3, 169 167 150 111 98 Bytes

Thanks to @AlexHall for saving 39(!) bytes and @nedla2004 for another 13

from turtle import* o=[90] for z in o*9:o+=[90]+[-x for x in o[::-1]] fd(5) for i in o:rt(i);fd(5) 

Starts by generating a list or right (90) and left (-90) turns, then goes through the list and moves the turtle.

Generated Output: enter image description here

EDIT: If this is too boring too watch, add speed(0) right before the first fd(5). It will run the same, except the turtle will move much faster.

##Python 2/3, 169 167 150 111 98 78 Bytes

Note that the import is not included in the byte count, according to the challenge specs.

Thanks to @AlexHall for saving 39(!) bytes and @nedla2004 for another 13

from turtle import* o=[90] for z in o*9:o+=[90]+[-x for x in o[::-1]] fd(5) for i in o:rt(i);fd(5) 

Starts by generating a list or right (90) and left (-90) turns, then goes through the list and moves the turtle.

Generated Output: enter image description here

EDIT: If this is too boring too watch, add speed(0) right before the first fd(5). It will run the same, except the turtle will move much faster.

added 2 characters in body
Source Link
Theo
  • 519
  • 5
  • 14

##Python 2/3, 169 167 150 111 98 Bytes

Thanks to @AlexHall for saving 39(!) bytes and @nedla2004 for another 13

from turtle import* o=[90] for z in o*9:o+=[90]+[-x for x in o[::-1]] fd(5) for i in o:rt(i);fd(5) 

Starts by generating a list or right (90) and left (-90) turns, then goes through the list and moves the turtle.

Generated Output: enter image description here

EDIT: If this is too boring too watch, add speed(0) right before the first fd(5). It will run the same, except the turtle will move much faster.

##Python 2, 169 167 150 111 98 Bytes

Thanks to @AlexHall for saving 39(!) bytes and @nedla2004 for another 13

from turtle import* o=[90] for z in o*9:o+=[90]+[-x for x in o[::-1]] fd(5) for i in o:rt(i);fd(5) 

Starts by generating a list or right (90) and left (-90) turns, then goes through the list and moves the turtle.

Generated Output: enter image description here

EDIT: If this is too boring too watch, add speed(0) right before the first fd(5). It will run the same, except the turtle will move much faster.

##Python 2/3, 169 167 150 111 98 Bytes

Thanks to @AlexHall for saving 39(!) bytes and @nedla2004 for another 13

from turtle import* o=[90] for z in o*9:o+=[90]+[-x for x in o[::-1]] fd(5) for i in o:rt(i);fd(5) 

Starts by generating a list or right (90) and left (-90) turns, then goes through the list and moves the turtle.

Generated Output: enter image description here

EDIT: If this is too boring too watch, add speed(0) right before the first fd(5). It will run the same, except the turtle will move much faster.

added 41 characters in body
Source Link
Theo
  • 519
  • 5
  • 14
Loading
deleted 29 characters in body
Source Link
Theo
  • 519
  • 5
  • 14
Loading
deleted 7 characters in body
Source Link
Theo
  • 519
  • 5
  • 14
Loading
deleted 6 characters in body
Source Link
Theo
  • 519
  • 5
  • 14
Loading
edited body
Source Link
Theo
  • 519
  • 5
  • 14
Loading
added 9 characters in body
Source Link
Theo
  • 519
  • 5
  • 14
Loading
Fixed Image
Source Link
Theo
  • 519
  • 5
  • 14
Loading
added 156 characters in body
Source Link
Theo
  • 519
  • 5
  • 14
Loading
Source Link
Theo
  • 519
  • 5
  • 14
Loading