# length of (list) — Scratch Block Guide > Returns how many items are currently stored in the list. How to use the "length of (list)" block in Scratch 3.0 (Variables & Lists): clear explanation, working block example, and debugging tips. ## What this block does Returns how many items are currently stored in the list. Set repeat loop counts dynamically so adding more quiz questions works automatically. - Category: Variables & Lists - Key tip: Never hardcode a list length like "10" when "length of list" stays accurate automatically. ## Working Scratch example Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it. **Example using length of (list)** - When green flag clicked - Repeat (length of (questions)) - Change (i) by (1) Try it: Loops the exact number of times needed for any list size. ## Related block guides Explore other blocks in the same category or return to the full English Block Dictionary. - [Back to Variables & Lists](/en/dictionary/variables/): See the overview and patterns for Variables & Lists. - [Scratch Block Dictionary (All Categories)](/en/dictionary/): Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/dictionary/variables/list-length/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)