This website uses cookies to ensure you get the best experience.
Learn more.
A Python client receives extracted results in a nested dictionary. It must read an optional field that is not always present. Which practice is most appropriate?
Published
- Assume every expected key is present in every document
- Replace all absent values with a randomly generated amount
- Check for the field and handle missing or invalid values explicitly
- Execute the returned dictionary as Python source code
Comments — 0
Sign in to comment