Skip to content

References: For Loops and Drawing Shapes

  1. Wikipedia: For Loophttps://en.wikipedia.org/wiki/For_loop The Wikipedia article on for loops explains the concept across many programming languages, showing how counting loops work and how Python's for loop compares to loops in Scratch and other languages students may know.

  2. Wikipedia: Control Flowhttps://en.wikipedia.org/wiki/Control_flow This article covers how programs decide which instructions to run and in what order, including loops and iteration. It gives students a broader view of why looping is a fundamental building block in every programming language.

  3. Wikipedia: Regular Polygonhttps://en.wikipedia.org/wiki/Regular_polygon Explains the geometry of regular polygons — equal side lengths and equal angles — which directly underpins the turtle-drawing formulas in this chapter, including how exterior angles determine the turning amount for any n-sided shape.

  4. Python Crash Course by Eric Matthes (No Starch Press) Chapter 4 covers for loops and range() in depth with clear examples and exercises that reinforce the counting patterns students need to draw polygons and repeat actions in turtle graphics.

  5. Python for Kids by Jason R. Briggs (No Starch Press) Written specifically for young learners, this book introduces for loops and turtle graphics together in an encouraging, visual style that matches the age and experience level of students in this course.

  6. Python Official Docs — More Control Flow Toolshttps://docs.python.org/3/tutorial/controlflow.html The official Python tutorial section on for loops and range() is the authoritative reference for exactly how iteration works in Python 3, including the three-argument form of range() with start, stop, and step.

  7. Real Python — Python "for" Loops (Definite Iteration)https://realpython.com/python-for-loop/ A thorough, beginner-friendly guide to Python for loops covering range(), loop variables, and common patterns. Includes interactive examples that help students see each concept in action before writing their own code.

  8. W3Schools — Python For Loopshttps://www.w3schools.com/python/python_for_loops.asp A concise, example-driven reference page for Python for loops and range() with a built-in "Try it Yourself" editor. Useful as a quick look-up when students forget syntax while working on polygon-drawing exercises.

  9. Programiz — Python for Loophttps://www.programiz.com/python-programming/for-loop Programiz covers for loops, range(), and loop variables with short, runnable examples and clear diagrams. The visual flow charts help visual learners understand iteration before applying it to turtle graphics projects.

  10. Khan Academy — Intro to Python Fundamentals: Loopshttps://www.khanacademy.org/computing/intro-to-python-fundamentals Khan Academy's free Python course includes video explanations and interactive coding challenges on loops, making it an ideal supplement for students who want extra practice or a different explanation of for loops and range().