Multiple choice

In Python a List uses what type of brackets when it is created?

  1. {} Braces

  2. () Parentheses

  3. [] Square brackets

  4. None of the above

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

In Python, lists are created using square brackets, such as [1, 2, 3]. Curly braces are used to create dictionaries and sets, while parentheses are used to create tuples.