Anonymous user
Sierpinski triangle/Graphical: Difference between revisions
m
→{{header|Python}}: PEP8 style changes, and changed the comment question into a less ambitious statement
Not a robot (talk | contribs) (Add 8086 assembly) |
m (→{{header|Python}}: PEP8 style changes, and changed the comment question into a less ambitious statement) |
||
Line 1,944:
{{libheader|Turtle}}
<lang python>
#
import turtle as t
def sier(n,length):
if
return
for i in range(3):
sier(n - 1, length / 2)
t.fd(length)
t.rt(120)
|