# Collection of code snippets by Arne Vajhøj 
# (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import yaml

cfg = yaml.load(open('/work/demo1.yaml', 'r'), Loader=yaml.FullLoader)
a = cfg['ab']['a']
b = cfg['ab']['b']
c = cfg['c']
d = cfg['de']['d']
e = cfg['de']['e']
f = cfg['f']
print('%d %d %d %s %s %s' % (a,b,c,d,e,f))
