I need a clarification on the built-in function get. The example is from here. The code: test_dict = {'Gfg' : {'is' : 'best'}} res = test_dict.get('Gf', {}).get('is') print("The nested safely accessed value is : " + str(res)) I understand that get fn is strictly for retrieving values for a given key in a dictionary. What is the purpose of including {} in the outer get fn? In a nested get function, does the get fn work from inner to out or vice-versa? Continue reading...