drag to orbit · scroll to zoom
← Playground

📏 Tape Measure · len

Pull the tape across the row of red blocks. len counts how many blocks there are — one number for each character.

A string
"watermelon"
blocks counted 0
Press measure — watch the tape sweep each block.
Python code
len("watermelon") # → 10

💡 len("watermelon") is 10 — ten character-blocks. Spaces and punctuation count too, because they are blocks as well.