Desmond Posted on Jun 19, 2020 Python 3.9 #python #django #webdev Python 3.9 🥳 is out and my favourite feature is the dictionary union operator. Example a = {1: 'dog', 2: 'cat', 3: 'rabbit'} b = {4: 'snake', 5: 'python'} c = a | b print(c) # {1: 'dog', 2: 'cat', 3: 'rabbit', 4: 'snake', 5: 'python'} Enter fullscreen mode Exit fullscreen mode Read the official Docs Top comments (1) Subscribe Submit Preview Dismiss Collapse Expand Abdulsalam Fawaz Akolade Abdulsalam Fawaz Akolade Abdulsalam Fawaz Akolade Follow Machine learning, Django. Location Nigeria Work Software engineer Joined May 12, 2020 • Jun 19 '20 Dropdown menu Copy link Hide Nice Code of Conduct • Report abuse
Top comments (1)
Nice