I need to return "None" for this but I know this is most simple with "get.dict" which wasn't working so I tried this approach. It works to return the correct values but will not return "none" for KeyError
Asked
Active
Viewed 509 times
-1
-
Please post code here directly, not a screenshot. – Code-Apprentice Jul 18 '22 at 02:45
-
Please don't post images of code, data, or Tracebacks. Copy and paste it as text then format it as code (select it and type `ctrl-k`) … [Why should I not upload images of code/data/errors when asking a question?](https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors-when-asking-a-question) …[Discourage screenshots of code and/or errors](https://meta.stackoverflow.com/questions/303812/discourage-screenshots-of-code-and-or-errors) – wwii Jul 18 '22 at 03:08