>_ IzzyLab

Topic breakdown

Arrays in bash are declared by listing elements in parentheses, and indexing is zero-based — this is the key nuance that makes "the second element" and "index 2" not the same. The array length and element access are given by special forms of parameter substitution: a hash before the name returns the count, and the name with an index in square brackets — a specific element. The task trains distinguishing length from index and combining both substitutions in a single output.

What's checked

  1. prints the element count and the second element
  2. the answer is computed from the array

What it looks like