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.

2 months ago
12345678910111213141516171819202122
  1. # Zeichnen
  2. from turtle import Turtle
  3. def draw_heart(turtle):
  4. turtle.left(40)
  5. turtle.forward(178)
  6. turtle.circle(90,200)
  7. turtle.right(120)
  8. turtle.circle(90,200)
  9. turtle.forward(178)
  10. sophia = Turtle()
  11. sophia.screen.bgcolor('Black')
  12. sophia.pencolor('Red')
  13. sophia.fillcolor('Red')
  14. sophia.begin_fill()
  15. draw_heart(sophia)
  16. sophia.end_fill()
  17. sophia.hideturtle()
  18. sophia.screen.mainloop()