Super Coding Power! 🚀
With your kind teacher Mrs. Brenda ❤️
Today we’re learning two superpowers that make our programs really smart: Nested Loops and Conditional Statements! Together they help us solve tricky problems like drawing patterns, playing games, and making decisions.
A loop repeats the same action many times.
Example: “Print ‘Hello’ 5 times”
A nested loop is when we put one loop inside another loop. It’s like a clock: the minute hand goes around many times while the hour hand moves slowly.
This makes a pattern of stars:
*****
*****
*****
Conditionals use if and else to make choices.
Let’s make a fun pattern where even numbers become hearts ❤️ and odd numbers become stars ⭐
Practice 1: How many stars will this print?
Practice 2: What will this code print?
Challenge: Create a checkerboard pattern using nested loop + if
Keep practicing loops and if-statements.
You can create amazing things!
Big hugs and high-fives,
Mrs. Brenda ❤️