title: Implementing stack in python by using lists as stacks
body: <p>I am create a stack demo with some functionality:</p>
  
  <pre><code>( Method ) __init__(self, n) =&gt; How can I initial the fix  n len of stack. ?
  ( Method ) IsEmpty      =&gt; Done by using lists as stacks 
  ( Method ) IsFull       =&gt; Done by using lists as stacks 
  ( Method ) Push         =&gt; Done by using lists as stacks 
  ( Method ) Pop          =&gt; Done by using lists as stacks 
  </code></pre>
  
  <p>The code i am doing </p>
  
  <pre><code> class Stack(object) :
  
     def __init__(self) :
      self.items = []
     def push(self, item) :
      self.items.append(item)
  
     def pop(self) :
      return self.items.pop()
  
     def isEmpty(self) :
      return (self.items == []) 
  
  if __name__ == "__main__":
      demoStack = Stack()
      demoStack.push(1)
      print demoStack.items
  </code></pre>
  
  <p>Anyboday know to do this?</p>
  
  <p>thanks</p>