Esempio n. 1
0
    def revstring(self):
        #return self.item.reverse()
        return self.item[::-1]


s = Stack()

s.isEmpty()

s.pop()

s.push(2)

s.push('hey')
s.show()

s.push(True)
s.show()

s.push(34534)
a = s.show()

s.peek()

s.revstring()

#**************************************************************************
#Simple Balanced Parentheses
#**************************************************************************