stack machine - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: stack machine (/thread-17106.html) |
stack machine - camilefaith - Mar-28-2019 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) RE: stack machine - Yoriz - Mar-28-2019 Thank for sharing your homework question with the forum. when you get stuck, post the specific part your stuck on with code in python code tags and any errors received in error tags. |