["python","dictionary"]
Multiple assignments into a python dictionary

Is it possible to assign values to more than one keys of a dictionary in a more concise way than the one below? I mean, let d be a dictionary initialized as below: d={'a':1,'b':2,'c':3} To assign values to multiple keys I need to do this: d['a']=10 d['b']=200 d['c']=30 Can I achieve same with something like this: d['a','b','c']=10,200,30 Thanks.
You can use dict.update: d.update({'a': 10, 'b': 200, 'c': 30}) This will overwrite the values for existing keys and add new key-value-pairs for keys that do not already exist.