I want to make an assignment to an item of a list in a single line for loop.

First i have a list, where each list items are dictionary object. Then, i do for loop over each item of the list and compare if 'nodeid' field of dictionary is 106. If yes, i add new field to that dictionary. Code is below.

```
K= []
K.append({'nodeid': 100 ,'elemid': 200})
K.append({'nodeid': 106 ,'elemid': 206})
K.append({'nodeid': 107 ,'elemid': 206})
for item in K: 
   if item['nodeid']==106: 
     item['S']= [2 , 124, 123 , 3532, 35]

```

I want to write loop part of the algorithm in a single line similiar as

```
[item['S']=12343 for item in K if item['nodeid']==106]

```

but this method does not work. 
How can i write this loop in a single line?

thanks