fork download
  1. from turtle import *
  2.  
  3. def koch(bok, n):
  4. if n == 0:
  5. fd(bok)
  6. return
  7. koch(bok/3, n - 1)
  8. lt(60)
  9. koch(bok/3, n - 1)
  10. rf(120)
  11. koch(bok/3, n - 1)
  12. lt(60)
  13. koch(bok/3, n - 1)
Success #stdin #stdout 0.04s 12180KB
stdin
Standard input is empty
stdout
Standard output is empty