A nested loop is one loop inside another.
A variable keeps track of information.
1 - We Do (10 min)
2 - Turn & Talk (5 min)
3 - UCSD Does (5 min)
4 - We Do (15 min)
5 - You Do (20 min)
6 - Reflect & Share (5 min)
(5 min)
What do you notice about nested loops in the project?
What do you notice about variables in the project?
(5 min)
(20 min)
Open the project.
Fix the code so that it asks the user how many times the butterfly flaps its wing and how many times the butterfly goes through the life cycle
Fix the repeat loops so that it follows the user input.
(5 min)
What did the inner (inside) loop of your code do?
What did the outer (outside) loop of your code do?
What was your goal today and what code made it work?
What challenge with your code did you overcome today?
Draw more costumes to make a more cohesive animation of the butterfly's life cycle!