░ ░▒▒▒▓▓█████▌░░ University of OXford & University of camBRiDGE ░░▐████▓▓▒▒▒░ ░
▄▄██▓▄ ▐███▌ ████▐███████▓▄ █████████▄ ▐███▌██████▓▄▄ ▄▄▓████▓ ▐████████
▄████████████ ▐███▌▐███▌▀████▌████▌ ▀███▓ ▀▀▀ ███▓▀▀████ ▄▓███▀ ▐███▓▀▀▀
▐███▀ ▀███▀███▓▄███▀ ▐███ ▄███▀▐███▓ ▄████▀▐███▌███▓ ███▓████ ▓███▌
███▌ ▐██▌ ▀████▀ ▓███████▄▄▐████████▓▄ ▐███▓███▓ ▐██████▌ ▀█████▓██████▓
████▄ ▄███▄▄███▀███▓ ████ ▀███▓███▓ ▀████▌████▐███▌ ███████▓ ▓██████▌
▐████████▀████▌ ███████▌ ▄███████▌ ████████▓███▌▄▄███▓▀█████▄▄████▓███▄▄▄▄▄
▀▀▓██▀▀ ▐████ ▐███▓████████▓▀████▌ ▐███████████████▓▀▀ ▀▀▓████▀▀░▓███████▌
...is a collective term for characteristics that the two institutions share.
█ How do I handle missing dictionary keys in Python?
█
▄
█ by Aaron Maxwell
█ Publisher: Infinite Skills
▓ Release Date: June 2017
▓ ISBN: 9781491994849
▒ Running time: 00:09:06
▒ Topic: Python
░ Scale: 01x50mb
░ Code Files: ( ) Included (■) Without
░
░ Lecture Date: 06/2017
░ Lecture Link: https://goo.gl/UNozHo
░
:
| When working with Python dictionaries, sometimes your code has to
| deal with keys that may not be there; depending on the situation,
| this is trickier than it looks. In fact, your code may have a
| major bug in it right now! Learn the three different techniques
| for handling missing dict keys, their different strengths, and
| avoidable gotchas.
|
| Learn 3 coding methods to handle missing keys in your dictionary
| data structure
| Understand which method to use - when, and why, and the pros and
| cons of each method
| Learn how to practically apply each method and what problems each
| one solves
| Fully understand the nuances of the often maligned dict.get()
| method
| Aaron Maxwell is author of the book "Powerful Python: The Most
| Impactful Patterns, Features, and Development Strategies Modern
| Python Provides." As a software engineer, he has worked in devops,
| test automation, and machine learning; and now divides his time
| between coding, writing, and teaching.
|
| Other videos in this series:
|
| What are f-strings in Python and how can I use them?
,
RLS-Crc: O