← Back to archive

Stdle #93 · iteration · 2026-09-07

What does this Go snippet output?

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

package main
import "fmt"
func main() {
day := 3
switch day {
case 1, 2, 3, 4, 5:
fmt.Println("weekday")
case 6, 7:
fmt.Println("weekend")
}
}
Iteration
4 attempts left

Answer & explanation