What’s the difference between lists enclosed by square brackets and parentheses in Python? by IT Nursery >>> x=[1,2] >>> x[1] 2 >>> x=(1,2) >>> x[1] 2 Are they both valid? Is one preferred for some reason? 7 Answers 7