This feature, used in Python 3.10+, is an alternative to if/elif/else blocks. See how case and match statements are used.
Writing Cleaner, More Efficient Python Code with the Walrus Operator
Here's a quick tutorial as to why you should use this versus a try and except block.
It's just like list comprehension, except with a dictionary!
Safely store sensitive information in this file, like your API keys and tokens.