If you're new to #Python and you want to install a Python package from the Python Package Index, you will probably want to use pip
Pip comes with Python (except where Python is preinstalled, like Linux)
I'm going to talk a little about what you can do with pip
🧵👇
Installing a #Python package with pip is usually as simple as running the following:
Sometimes you may want to install multiple #Python 🐍packages. You can run the command for each package or you can separate the names of the packages with spaces:
Did you know #Python has a built-in way to chain multiple dictionaries together?
It's called `ChainMap` and it's part of the `collections` module.
Let's talk a little about it today!
🧵🐍👇
A ChainMap takes one or more mappings or dictionaries and combines them into a single unit.
When you do this, the ChainMap will go through each map in order to see if that key exists and has a value. If it does, then the ChainMap will return the first value it finds. 🐍🔥
Let's look at an example of using `ChainMap` in #Python