Beispiele und Musterlösungen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mandala.py 372B

1234567891011121314151617181920
  1. # Zeichnet ein Mandala mit der Turtle-Grafik
  2. from turtle import Turtle
  3. sophia = Turtle()
  4. sophia.speed(0)
  5. for _ in range(36):
  6. sophia.pencolor("Blue")
  7. sophia.circle(100)
  8. sophia.pencolor("Red")
  9. sophia.forward(200)
  10. sophia.left(120)
  11. sophia.color("Orange")
  12. sophia.forward(100)
  13. sophia.left(70)
  14. sophia.forward(15)
  15. sophia.screen.mainloop()