CodeLab Academy 📞 9936 6696
← List Scratch · Level 9: My blocks and messages Quiz · 45 points ← #822 #824 →

#823. A loop inside a block

When the green flag is clicked, what is the value of the **steps taken** variable?
define climb (n)
repeat (n)
change [steps taken v] by (2)
end

when green flag clicked
set [steps taken v] to (0)
climb (4)
climb (8)

💡 Not sure? Build it in Scratch and try it out.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!