Home » Computer Science » Python » What is the correct syntax to create a list in Python?

What is the correct syntax to create a list in Python?

A. list = (1, 2, 3)
B. list = [1, 2, 3]
C. list = {1, 2, 3}
D. list = <1, 2, 3>

Option: B