from turtle import * import turtle mode ("logo") shape ("turtle") pensize (3) #Funktionen werden definiert: def yin(): color ("seashell2") fillcolor("seashell2") begin_fill() circle(50, 180) circle(100, 180) left (180) circle(-50, 180) end_fill() def yang (): circle(50, 180) rt(180) color ("black") fillcolor("black") begin_fill() circle(-100, 180) circle(-50, 180) circle(50, 180) end_fill () def dot1(): pencolor("black") fillcolor("black") begin_fill() circle (10) end_fill() def dot2(): speed (1) pencolor("seashell2") fillcolor("seashell2") begin_fill() circle (10) end_fill() def jump1(): penup () lt (90) fd(50) pendown () def jump2(): penup () forward (100) pendown () #Funktionen werden aufgerufen und ausgeführt: yin() yang () jump1() dot1() jump2() dot2() hideturtle () # Das ist da, damit sich das Fenster nicht sofort schließt: turtle.mainloop()