Python
You're viewing a free preview. Sign in free to read every tool guide.
Dictionaries: looking things up by name, not position Gotcha: server["owner"] throws a KeyError if the key doesn't exist. server.get("owner") returns None instead — prefer .get() for any key you're not 100% sure is…
Dictionaries & Comprehensions
Sign in free to read this guide, along with the rest of the DevOps Tools library.
Sign in free