# define a function
from turtle import *

def triangle():
    forward(100)
    left(120)
    forward(100)
    left(120)
    forward(100)
    left(120)
    forward(100)

triangle()
triangle()
triangle()

done()
# define a function
from turtle import *

def triangle():
    forward(100)
    left(120)
    forward(100)
    left(120)
    forward(100)
    left(120)
    forward(100)

triangle()
triangle()
triangle()

done()
# define a function