結果 : how to check if a stack is empty in python