Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
stack machine
#1
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)[Image: media%2F569%2F5690924c-f756-4f3a-8364-be...98%2Fimage]
Reply
#2
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020