On 04/28/2015 09:43 PM, Alan Gauld wrote:
You could consider JSON too.
JSON looks a lot like a Python dictionary of strings so is
almost a perfect match to your data.
Sounds great, I'll check it out. Thanks!
thomas
==
Thomas C. Hicks, MD, MPH
Training Manager,
On 04/28/2015 05:30 PM, Peter Otten wrote:
data = {'B002':'NRP 2014','B003':'HBB 2015'}
writer = csv.writer(sys.stdout)
writer.writerows(data.items())
B002,NRP 2014
B003,HBB 2015
That is exactly what I was looking for! Thanks, apparently my knowledge
deficit is in understanding dictionary