← Back to archive

Stdle #97 · strings · 2026-09-11

What does this Go snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

package main
import "fmt"
func main() {
n := 0
for range "héllo" {
n++
}
fmt.Println(n)
}
Strings
4 attempts left

Answer & explanation