square brackets | Sololearn: Learn to code for FREE!


square brackets

why are we declaring the variable words with square brackets?

6/22/2017 7:41:43 AM

Leroy Williams

2 Answers

New Answer


Bracket variants signify data types in Python. Square are for lists Curly are for dictionaries (or sets) Round are for tuples


yes that is right cause square brackets are used in lists.