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 new_hoschi
def yaml(a):
dic={key:value for key,value in [j.split(': ') for j in a.split('\n') if j]}
for key,value in dic.items():
try:
dic[key]=int(value)
except:
continue
return dic
April 29, 2020