filmov
tv
Use python get() dictionary function
Показать описание
One of the common mistakes when using the python dictionary is the use of try/except clauses with dealing with keys which don't exist in the dictionary. While there are other options to avoid python terminating the program and catching the error, in my opinion, the python dictionary .get() function serves this purpose the best.