+ 3
If you only wany to update or insert one pair, then use: dict[ key ] = value If you want to update or insert multiple keys and values, use dict.update() dict.update( { key1: val1, key2: val2, key3: val3 } )
14th Jan 2021, 3:01 AM
noteve
noteve - avatar