You will be able to use | or |= to create a new dictionary from 2 dictionaries or to update one with the values of another respectively.
Merging Dictionaries – new in Python 3.9!
a | b will merge `b` dictionary into `a` dictionary, if there are conflicts, the rightmost-value will be kept
a |= b will merge `b` into `a` and return the result in `a` (it is also called updating)
Example: π pic.twitter.com/HlrVf8k0vn
— Daily Python Tip ππ§ (@python_tip) October 15, 2020
Subscribe to the newsletter for updates
Tkinter templates
My youtube channel
Twitter: @pythonprogrammi - python_pygame