Stack Operations Using Python