l = []
for x in range(0, 50):
    for y in range(0, 50):
        if hash((x, y)) in l:
            print('Fail: ', (x, y))
l.append(hash((x, y)))
print('Test Finished')
Time complexity of accessing a Python dict