adict={
'a':1,'b':2}
adict.update({
'c':3},{
'd':4})
print(adict)
Output :
TypeError: update expected at most 1 argument, got 2
Dictionary update Cannot pass in multiple parameters , But the collective update The method is OK :
aset = {
1, 2, 3}
aset.update({
4, 5}, {
6, 7})
print(aset)
Output :
{
1, 2, 3, 4, 5, 6, 7}