Stack Operation Program In Python To Convert