def insert(self , item): index = hash_function(self.length , item) print index if self.my_hash_table[index] == None: singly_obj = Singly() self.my_hash_table[index] = singly_obj.insert_head(item) elif self.my_hash_table[index] != None: self.my_hash_table[index].insert_head(item)