Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for YAML. Simple Dict by pakhomovegor
def yaml(a):
dict={}
for line in a.splitlines():
if line:
k,v=line.split(": ",1)
dict[k]=int(v) if v.isnumeric() else v
return dict
July 28, 2021