1.    def searchNode(self, data):
2.        if (self.isEmpty()):
3.            return None
4.        else:
5.            ptr = self.head
6.            found = False
7.            while ptr and found is False:
8.                if ptr.getInfo() == data:
9.                    found = True
10.               else:
11.                   ptr = ptr.getNext()
12.       return ptr