Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
setitem solution in Creative category for YAML. Simple Dict by MrPod
def yaml(a):
d={}
for l in filter(None, a.split('\n')):
d.__setitem__(*(lambda a,b:(a,int(b)if b.isdigit()else b))(*l.split(': ')))
return d
March 22, 2020