結果 : write python implementation to check if the stack is empty or not