Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

List Length

Create a vector with 5 items: "a", "b", "c", "d", "e". Then print its length in this exact format:

Expected output:

text
Length: 5

Hints:

  • Use .len() to get the number of items
  • Use println!("Length: {}", letters.len()) to format the output
rust
fn main() {
}