結果 : pop from dictionary python time complexity