+ 6
Tell me any five differences between list and tuples ...?
6 ответов
+ 18
tuples:
1. immutable
2. may act as dictionary keys
3. tuple of lists -- still immutable itself
4. use round brackets -- (x, y, z)
lists:
1. mutable
2. may not act as dictionary keys
3. list of tuples -- still mutable itself
4. use square brackets -- [x, y, z]
common:
0. subscriptable
1. iterable
2. generable
3. sliceable
4. unpackable
5. not callable
6. may contain items of different classes
7. multidimensional
+ 4
no
0
Cool!
- 1
nandini can I challenge u in html
- 1
dar lag gya
- 1
😁😁😁😁😀