square brackets | Sololearn: Learn to code for FREE!

0

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

+5

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

0

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