In 81 update key val for key val in sequence Out 81 None None None In

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
In [81]: d = {}; [ d.update({key:val}) for (key,val) in sequence ]
Out[81]: [None, None, None]
In [82]: key
Out[82]: 5
In [83]: val
Out[83]: 6
In [84]: key, val = None, None
In [85]: sequence = ((1,2),(3,4),(5,6))
In [86]: d = {}; [ d.update({key:val}) for (key,val) in sequence ]
Out[86]: [None, None, None]
In [87]: key, val
Out[87]: (5, 6)