結果 : add to front of list python time complexity