Jump to content

Sierpinski triangle/Graphical: Difference between revisions

m
→‎{{header|Python}}: PEP8 style changes, and changed the comment question into a less ambitious statement
(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>
# likelya thevery simplest possiblesimple version?
import turtle as t
def sier(n,length):
if (n == 0):
return
for i in range(3):
sier(n - 1, length / 2)
t.fd(length)
t.rt(120)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.