## Lesson 3: While Loops and Trace Tables

Head to the main page to check out our other popular resources: Challenges | Solve and Learn | How-to

Introduction to Iteration and loops. The theory behind loops and how they work. Create and adapt programs using loops. Intro to the random number generator. Learn about trace tabling (white box testing). Example of a trace table and dry run. Wonders of the Fibonacci sequence. Examples of Iteration in game design. Focus on While loops. Challenges, tasks (with solutions), suggested videos, big ideas discussion and research and HW included. Introducing Ada Lovelace and Charles Babbage.

Your one stop for all things Python. Do look around!

What's included?
Our highly popular lessons series - content added regularly! Don't forget to also check out the "Solve & Learn Online" section which includes hugely popular lessons, challenges, tutorials, presentations, step by step guides and more. If you can't quite find what you need, do check out our very useful and growing library of all possible python Code Snippets
Series 1: includes variables, sequence, selection, iteration, and functions, not to mention a load of interesting computing trivia and theory embedded in each ppt, along with learning objectives, quizzes, challenges, solution .py files, tasks and suggested hw, discussion topics and research
Series 2: covers everything from functions to, lists, list operations, list comprehension, tuples, sets, dictionaries, file handling, read and write from file, including working with CSV files, creating a facebook like application (teacherbook!), using file read and write/append techniques. All lessons include practical tasks, challenges and solution files can be found in 'code snippets' (on this site) or downloaded from the drive:
Series 3: introduces the concept of object orientated programming and the use of classes with Python. Learn how to create your own classes (and objects) from scratch, and understand OOP essentials. Download pygame and create games in pygame, step by step tutorials. Create a class based game in python and pygame. Understand some of the principles behind game design in programming including edge detection and collision detection. Explore and understand the algorithms and maths behind these important game design essentials. Collision detection in Python and Edge detection, boundary detection. A look at class diagrams and UML for design.
Game Design Series -highly recommended as described above and create a platform game in Pygame
GUI Python with Tkinter