コード例 #1
0
ファイル: algo.py プロジェクト: RamSingh1988/Machine-Learning
    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
#**************************************************************************