new_contents: __author__ = "ClaytonBat"
  
  class Node:
      def __init__(self,initdata):
          self.data = initdata
          self.next = None
  
      def getData(self):
          return self.data
  
      def getNext(self):
          return self.next
  
      def setData(self,newdata):
          self.data = newdata
  
      def setNext(self,newnext):
          self.next = newnext
  
  
  class UnorderedList:
  
      def __init__(self):
          self.head = None
  
      def isEmpty(self):
          return self.head == None
  
      def add(self,item):
          temp = Node(item)
          temp.setNext(self.head)
          self.head = temp
  
      def size(self):
          current = self.head
          count = 0
          while current != None:
              count = count + 1
              current = current.getNext()
  
          return count
  
      def search(self,item):
          current = self.head
          found = False
          while current != None and not found:
              if current.getData() == item:
                  found = True
              else:
                  current = current.getNext()
  
          return found
  
      def remove(self,item):
          current = self.head
          previous = None
          found = False
          while not found:
              if current.getData() == item:
                  found = True
              else:
                  previous = current
                  current = current.getNext()
  
          if previous == None:
              self.head = current.getNext()
          else:
              previous.setNext(current.getNext())
      
      def append(self,item):
          current = self.head
          i = 0
          while i < self.size() -1:
              current = current.getNext()
              i +=1
          temp = Node(item)
          current.setNext(temp)
          
          
  
  mylist = UnorderedList()
  mylist.add(1)
  mylist.add(2)
  mylist.add(3)
  mylist.add(4)
  print(mylist.size())
  print("*"*10)
  print(mylist.append(5))
  print(mylist.size())
  print(mylist.search(5))
  print(mylist.search(1))
subject: Add Lists.py