#285. How many times?
When the green flag is clicked, this script runs. How many times in total will the cat say **"Meow"**?
when green flag clicked repeat (4) repeat (2) say [Meow] for (0.5) seconds end end
# When the green flag is clicked
for _ in range(4):
for _ in range(2):
print("Meow") # 0.5 seconds
// When the green flag is clicked
for (let i = 0; i < 4; i++) {
for (let j = 0; j < 2; j++) {
console.log("Meow"); // 0.5 seconds
}
}
💡 Not sure? Build it in Scratch and try it out.