fork download
  1. # your code goes here
  2. a={'b':'b'}
  3. b={'b':'c'}
  4. print(dict(a.items()|b.items()))
  5. print(dict(list(a.items()) + [('a','c')]))
Success #stdin #stdout 0.02s 9244KB
stdin
Standard input is empty
stdout
{'b': 'b'}
{'b': 'b', 'a': 'c'}