L
ist
like the array in other programming language
a = ['k1'','k2','k3']
index->a[0] a[1] a[2]
List :key signal is "[]"
a.
a.append a.extend a.insert a.remove a.sort a.count a.index a.pop a.reverse
Tuple:
key char is ","
Tuple con not be change ,
a = ('k1'','k2','k3')
index->a[0] a[1]a[2]
dictionary:
key char is "{}"
its' parameter is a couples.
dict = {'a':'1','b':'2'}
for k in dict :
print(k)
output:the dict's keys