FAQ: Stacks: Python - Stacks Python Size II

Returning boolean literals is the naive approach to coding, which this course is well beyond, preferring return expressions over literals.

self.limit > self.size

self.size == 0

are both boolean expressions.

1 Like