I\'m taking a class in Algorithms and Data Structures (Python). In the book there is an example of a \"stack\" with methods that return certain values. In the book, these values
Why should it print if you haven't included a print statement? Try:
print s.size() print s.isEmpty() print s.peek()