Guess the Output · #82 · 2026-06-25
What does this print?
Python ·Difficulty 2/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 s = String::from("héllo");
let slice = &s[0..2];
println!("{}", slice);
}
Loading your progress...
Press 1 through 4, or tap a numbered choice, to answer. Back to hub