idiombench / Python /train /3.6 /fstring /legacy_06.py
SwashBuckler001's picture
IdiomBench (part 10)
c6ed2d8 verified
Raw History Blame Contribute Delete
105 Bytes
def outer(x):
def inner():
return 'x={x}'.format_map(locals())
return inner
outer(42)()