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 methods.

>How rude of me, I neglected to note I am using Python 3.4.3.
And now you're top-posting to make it even worse;)
Lesson learned!

thomas

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to