# 다른 곳에 도형 그리기
import turtle as t
t.shape('turtle')


def polygon(n):
    for x in range(n):
        t.forward(100)
        t.left(360/n)


def polygon2(n , d):
    for x in range(n):
            t.forward(d)
            t.left(360/n)
            

polygon(3)
polygon(5)
t.up() # 선 올리기
t.back(200)
t.down() # 선 내리기 
t.color('red')

polygon2(4,80)
polygon2(5,120)
t.mainloop()
5681b5f0fb4b556354d978b7f26f055acb1ec12d
<mask token>


def polygon(n):
    for x in range(n):
        t.forward(100)
        t.left(360 / n)


<mask token>

<mask token>


def polygon(n):
    for x in range(n):
        t.forward(100)
        t.left(360 / n)


def polygon2(n, d):
    for x in range(n):
        t.forward(d)
        t.left(360 / n)


<mask token>

<mask token>
t.shape('turtle')


def polygon(n):
    for x in range(n):
        t.forward(100)
        t.left(360 / n)


def polygon2(n, d):
    for x in range(n):
        t.forward(d)
        t.left(360 / n)


polygon(3)
polygon(5)
t.up()
t.back(200)
t.down()
t.color('red')
polygon2(4, 80)
polygon2(5, 120)
t.mainloop()

import turtle as t
t.shape('turtle')


def polygon(n):
    for x in range(n):
        t.forward(100)
        t.left(360 / n)


def polygon2(n, d):
    for x in range(n):
        t.forward(d)
        t.left(360 / n)


polygon(3)
polygon(5)
t.up()
t.back(200)
t.down()
t.color('red')
polygon2(4, 80)
polygon2(5, 120)
t.mainloop()

# 다른 곳에 도형 그리기
import turtle as t
t.shape('turtle')


def polygon(n):
    for x in range(n):
        t.forward(100)
        t.left(360/n)


def polygon2(n , d):
    for x in range(n):
            t.forward(d)
            t.left(360/n)
            

polygon(3)
polygon(5)
t.up() # 선 올리기
t.back(200)
t.down() # 선 내리기 
t.color('red')

polygon2(4,80)
polygon2(5,120)
t.mainloop()