from turtle import *
geir = Turtle()
geir.shape("turtle")
geir.pencolor("purple")
geir.pensize(5)
# Tegne kvadrat
geir.fillcolor("orange")
geir.begin_fill()
for i in range(4):
geir.forward(250)
geir.left(90)
geir.end_fill()
# Tegne trekant
geir.fillcolor("red")
geir.begin_fill()
for j in range(3):
geir.forward(250)
geir.right(120)
geir.end_fill()
mainloop()