Question #445

Which Python 3.9+ syntax allows to merge two dictionaries x and y?

Python 3.9 introduces a new way to merge dictionaries using a union operator | . All other syntaxes above will throw SyntaxError errors. (towardsdatascience.com/merging-dictionaries-in-python-3-9...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵