← Back to archive

Stdle #123 · iteration · 2026-10-07

What does this Go snippet output?

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

package main
import "fmt"
func main() {
x := 100
{
x := 200
fmt.Println(x)
}
fmt.Println(x)
}
Iteration
2 lines
4 attempts left

Answer & explanation