why get(key, value) returns the correct value even if you type in the wrong value into the value spot?
why get(key, value) returns the correct value even if you type in the wrong value into the value spot? Question: so I know what this method does, but i am trying to understand why it does this. For example: dic = {‘a’:500, ‘b’:600} dic.get(‘a’, 5) #output 500 i would expect this to be invalid. but …