one = 1 two = 2 d = {(one, two): 2} def f(): d[one, two] f() f()