Locals Python Scoping Python Scoping In Dict Comprehension January 15, 2024 Post a Comment >>> x = 'foo' >>> {0: locals().get('x')} {0: 'foo'} >&… Read more Python Scoping In Dict Comprehension