from random import *
def generatePoints(n):
l = []
for i in range(n):
x = randint(0,10)
y = randint(0,10)
l.append((x,y))
return l
def createPointDict(pList):
pDict = {}
for i in pList:
pDict[i] = pDict.get(i,0) + 1
return pDict
def doQuery(pDict, p):
if pDict.get(p,0) == 0:
print('Not Found')
else:
print('{} = {}'.format(p,pDict[p]))