Stack Operation Program In Python To Check