from random import *
def generatePoints(n):
pList=[]
for i in range(n):
x = randint(0, 10)
y = randint(0, 10)
pList.append((x,y))
return pList
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]))