Skip to main content

Guess the Output · #83 · 2026-06-26

What does this print?

Python ·Difficulty 1/3

How to play

Read the code snippet and pick the correct output from four choices. One shot — no take-backs. Press 1–4 or click to answer.

fn main() {
    let x: Option<i32> = Some(3);
    let y = x.map(|v| v * 2);
    println!("{:?}", y);
}

Loading your progress...

Press 1 through 4, or tap a numbered choice, to answer. Back to hub