Multiple choice

Which of the following is the correct syntax to set up an array?

  1. name = ["James", "Joe", "Jake", "Jamie"]

  2. name == ["James", "Joe", "Jake", "Jamie"]

  3. name = [James, Joe, Jake, Jamie]

  4. name = ["James" "Joe" "Jake" "Jamie"]

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Option A uses the correct assignment operator (=) and square brackets to define a list or array of strings.