y = 42 def foo(): a = y + 1 return [x + a for x in range(0, 42)]