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