0

square brackets

why are we declaring the variable words with square brackets?

22nd Jun 2017, 7:41 AM
Leroy Williams
Leroy Williams - avatar
2 ответов
+ 5
Bracket variants signify data types in Python. Square are for lists Curly are for dictionaries (or sets) Round are for tuples
22nd Jun 2017, 7:57 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
yes that is right cause square brackets are used in lists.
28th Jun 2017, 3:01 AM
Ryley
Ryley  - avatar