[🐍PyTricks]: Merging two dicts in Python 3.5+ with a single expression
Preview text: # How to merge two dictionaries # in Python 3.5+ >>> x = { 'a' : 1 , 'b' : 2 } >>> y = {…
No image available for this email.
- Subject
- [🐍PyTricks]: Merging two dicts in Python 3.5+ with a single expression
- Preview text
- # How to merge two dictionaries # in Python 3.5+ >>> x = { 'a' : 1 , 'b' : 2 } >>> y = {…
- From
- mail@
dbader.org - Brand
- Dan Bader
- ESP
- Drip
- Sent
- Fri Mar 13, 2026, 9:30 PM ET
- Sent to
- danbader.com, dbader.org
- Size
- 31 KB
- Images
- 1
- Links
- 5, 2 of them buttons
- Subject length
- 71 characters
Sent just before and after
| Mar 18, 2026 12:00 PM | [🐍PyTricks]: The get() method on Python dicts and its "default" arg | |
| Mar 17, 2026 12:00 PM | [🐍PyTricks]: picking up the basics of Python was the easy part? | |
| Mar 15, 2026 2:00 PM | A path to "Python mastery" | |
| Mar 15, 2026 12:00 PM | [🐍PyTricks]: How to sort a Python dict by value | |
| Mar 14, 2026 12:00 PM | [🐍PyTricks]: Different ways to test multiple flags at once in Python | |
| Mar 13, 2026 9:58 PM | Python 4.0 | |
| Mar 13, 2026 9:30 PM | [🐍PyTricks]: Merging two dicts in Python 3.5+ with a single expression (this email) |
More from Dan Bader
All Dan Bader emails[🐍PyTricks]: Measure the execution time of small bits of Python code with the "timeit" module
Oct 31, 2026 12:00 PM
Oct 30, 2026 4:30 PM
the Python ecosystem + an easy mistake to make
Oct 30, 2026 2:00 PM
[🐍PyTricks]: Function argument unpacking in Python
Oct 28, 2026 12:00 PM
Hindsight is 20/20 for Pythonistas
Oct 27, 2026 2:00 PM
[🐍PyTricks]: You can use "json.dumps()" to pretty-print Python dicts
Oct 25, 2026 12:00 PM
Oct 24, 2026 2:00 PM
[🐍PyTricks]: Try running "import this" inside a Python REPL ...
Oct 22, 2026 12:00 PM
![[🐍PyTricks]: Measure the execution time of small bits of Python code with the "timeit" module - email from Dan Bader](https://img.theysentit.com/dan-bader/6146431.t.jpg)


![[🐍PyTricks]: Function argument unpacking in Python - email from Dan Bader](https://img.theysentit.com/dan-bader/5903702.t.jpg)

![[🐍PyTricks]: You can use "json.dumps()" to pretty-print Python dicts - email from Dan Bader](https://img.theysentit.com/dan-bader/5705124.t.jpg)

![[🐍PyTricks]: Try running "import this" inside a Python REPL ... - email from Dan Bader](https://img.theysentit.com/dan-bader/5526097.t.jpg)