Re: [Tutor] Converting a sequence of dictionaries to a single dictionary

2016-06-22 Thread Alan Gauld via Tutor
On 22/06/16 01:41, Ek Esawi wrote: > I am trying to read a csv file via DictReader and produce a single > dictionary without fieldnames; that is, I just want a single dictionary > that contains tests as keys and grades as values as shown below in my > sample file. OK, As you've discovered that's

[Tutor] Converting a sequence of dictionaries to a single dictionary

2016-06-22 Thread Ek Esawi
Hi All-- I am trying to read a csv file via DictReader and produce a single dictionary without fieldnames; that is, I just want a single dictionary that contains tests as keys and grades as values as shown below in my sample file. If I loop through the reader, it produces a sequence of 2