#!/usr/local/bin/python3 d = {1:1, 2:2} for i in range(1000000): 1 in d and 2 in d