recursion fractals and the python turtle module
play

Recursion, Fractals, and the Python Turtle Module Hayley Denbraver - PowerPoint PPT Presentation

Recursion, Fractals, and the Python Turtle Module Hayley Denbraver @hayleydenb Hello! Photo Source Recursion Fractals Python Turtle Module Recursion Recursion Photo Credit Recursion involves breaking a problem down into smaller and


  1. Recursion, Fractals, and the Python Turtle Module Hayley Denbraver @hayleydenb

  2. Hello!

  3. Photo Source

  4. Recursion Fractals Python Turtle Module

  5. Recursion

  6. Recursion Photo Credit

  7. Recursion involves breaking a problem down into smaller and smaller subproblems until you get to a small enough problem that it can be solved trivially.

  8. Factorials! 5! = 5 x 4 x 3 x 2 x 1 5! 4! 3! 2! 1!

  9. Recursive Version

  10. Recursive Case Moves toward Base Base Case

  11. Loop Version

  12. Fractals Source

  13. Source

  14. Source

  15. Source

  16. Encountering Fractals in the London Underground

  17. What’s Next?

  18. Source Source

  19. Level 0 Level -1 Level -3 Level -2

  20. What Have We Learned?

  21. Thank You! Tweet Me your Python Turtle Creations! They will all get retweets and scores out of 10 (Similar to the dog_rates twitter, all python turtle creations will get scores above 10/10 because all python turtle creations, like all dogs, are awesome) @hayleydenb

  22. Resources Python 3 Turtle Module Docs How to Think Like a Computer Scientist Fractals My Turtle Code

Recommend


More recommend