import turtle as t def side6(): for i in range(6): t.forward(100) t.right(60) for i in range(6): side6() t.right(60) t.done()