The repeat scope in this program is the code between the start of the loop and the end block. It is important to realize that a variable defined inside a scope only exists within that scope. Run this program that tries to use a variable defined inside a different scope. Read the error and remove the block that is causing the problem.
Coding:
Hotkey Shortcuts
Move BlocksUP or DOWN or TAB
Run Program ALT + SHIFT + R
Stop Program ALT + SHIFT + S
Hide Tray ALT + SHIFT + X
Zoom In ALT + +
Zoom Out ALT + -
Open Help ALT + SHIFT + H
Navigate to Tray ALT + 1
Navigate to Blocks ALT + 2
Enter Navigation Mode SHIFT + ENTER
Switch to Next Tab CTRL + Tab
Switch to Previous TabCTRL + Shift + Tab
Blocks
Hint
Great job!
Try again
Delete the output count block and rerun the program. This block creates an error because the variable count is defined inside the loop scope. Once the program is outside the loop scope the variable count does not exist.