Variables
let (immutable), let mut (mutable), const, and Rust's safety philosophy.
Simple enough for a 5-year-old to understand
let and let mut
Variables in Rust are IMMUTABLE by default. You need let mut to change them.
fn main() { let x = 5; let mut y = 10; y = 20; println!("{} {}", x, y);}🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: Edirne