#!/usr/bin/env python3
# define a dict object/d
d = dict()
d['0'] = 'a'
d['1'] = 'b'
print("type/d:", type(d), " value/d:", d)
# convert dict to string
s = str(d)
print("type/s:", type(s), " value/s:", s)
#convert string to dict
d1 = eval(s)
print("type/d1:", type(d1), " value/d1:", d1)