Skip to content

merge (union) two Python dictionaries #3

Open

Description

@duoduo369

other way

x = {'a':1, 'b': 2}
y = {'b':10, 'c': 11}
z = dict(x, **y)

Activity

  1. fengsp commented on Jul 18, 2014

    @fengsp
    Owner

    :)

  2. ComputerMachine commented on Apr 10, 2015

    @ComputerMachine

    nice method duoduo, very pythonic indeed!!

  3. zzl0 commented on Apr 12, 2015

    @zzl0

    👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions