title: Create list/node class Python
body: <p>As exercise, I would like to create my own node/list class. Anyway I don't understand how to add a node to list...here's my code:</p>
  
  <pre><code>class Node:
      def __init__(self, value):
          self.element = value
          self.nextEl = None
  
      def getEl(self):
          return self.element
  
      def getNext():
          return self.nextEl
  
  class List:
      def __init__(self, fnode):
          self.firstNode = fnode
  
      def add(self, newNode):
  
      def printList(self):
          temp = self.firstNode
          while (temp != None):
              print temp.element
              temp = temp.nextEl
  </code></pre>