promptdojo_

Diagnose any crash in one read — step 8 of 9

Write a function safe_get that takes a dict and a key. If the key exists, return the value. If the key is missing, return the string "missing" instead of crashing with KeyError.

Two calls happen at the bottom — they should print:

alex
missing

full-screen editor opens — close anytime to keep reading.