Stack machine program in python

JayM24

 

eate a Stack Machine to validate if a string is a palindrome.  You must validate the input string using the Stack machine 

Here are the Stack Machine Rules(picture1)


 The determination that the input string is in fact a palindrome is that the input string is used  and the Stack is empty, any other condition and the string is not a palindrome.  In addition to verifying the string,I also want a display of the results from each step, similar to the following:  (picture2)


  • 7 years ago
  • 20
Answer(9)

Purchase the answer to view it

NOT RATED

    Purchase the answer to view it

    NOT RATED

      Purchase the answer to view it

      NOT RATED

        Purchase the answer to view it

        NOT RATED

          Purchase the answer to view it

          NOT RATED

            Purchase the answer to view it

            NOT RATED

              Purchase the answer to view it

              NOT RATED

                Purchase the answer to view it

                NOT RATED

                  Purchase the answer to view it

                  NOT RATED
                  • main.py
                  • main.rar