The second argument is what pop returns If the first argument is absent. (If you call pop with just one argument, key, it raises an exception if that key's absent).