def ellipse(a, b):
return [[a*math.cos(i*math.pi/180),b*math.sin(i*math.pi/180)] for i in range(0,360)]
if __name__ == "__main__":
l = ellipse(150,80)
turtle.up()
turtle.setpos(150, 80)
turtle.down()
for (x, y) in l:
turtle.setpos(x, y)
turtle.setpos(x, y + 100)
for (x, y) in l:
turtle.setpos(x, y + 100)
turtle.up()
turtle.setpos(-150, 90)
turtle.down()
turtle.setpos(x - 300, y + 100)
turtle.setpos(x - 300, y)
turtle.done()