Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DimitriyPS |
I load data from a file into a variable of type dictionary. I then assign values from the dictionary to a number of “working” variables. I refer to dictionary fields by standardized names, implying that they are there. However, if the field is not in the dictionary, the program will stop with an error. How to check that the required field is in the dictionary?