<filename>Lecture-6/Code/OpenHashing_Lookup.py
def lookup(s):
	j = 0
	
	while t[(h(s) - g(s, j)) mod m] \
			is not None:
		if t[(h(s) - g(s, j)) mod m][0] != s:
                        j += 1
        if t[(h(s) - g(s, j)) mod m][0] == s:
	        return t[(h(s) - g(s, j)) mod m]
	return None

<filename>Lecture-6/Code/OpenHashing_Lookup.py
def lookup(s):
	j = 0
	
	while t[(h(s) - g(s, j)) mod m] \
			is not None:
		if t[(h(s) - g(s, j)) mod m][0] != s:
                        j += 1
        if t[(h(s) - g(s, j)) mod m][0] == s:
	        return t[(h(s) - g(s, j)) mod m]
	return None
