← Back to archive

Stdle #141 · strings · 2026-10-25

What does this Go snippet output?

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

package main
import "fmt"
func main() {
s := "héllo"
fmt.Println(len(s[:2]))
}
Strings
4 attempts left

Answer & explanation