use std::collections::HashMap;
fn main() {
let mut map = HashMap::new();
map.insert("Rust", 1);
map.insert("Python", 2);
map.insert("C", 3);
// Iterate over keys and values
for (key, value) in &map {
println!("Key: {} Value: {}", key, value);
}
}
/*
run:
Key: Python Value: 2
Key: Rust Value: 1
Key: C Value: 3
*/