Apr-28-2017, 06:38 AM
(This post was last modified: Apr-28-2017, 06:41 AM by tannishpage.)
(Apr-28-2017, 06:09 AM)wavic Wrote: Open the file and read it row by row. For each line do:
dict(zip(*iter(line.split(':'))))This will return a dictionary.
what does the zip do here? and why is it *iter?
(Apr-28-2017, 06:04 AM)buran Wrote:I kinda do. Sadly although I've been doing python for 1 year, I still have lots to learn. If you can, recommend books, tutorials, or something that can help me learn more. Thank you :)(Apr-28-2017, 05:47 AM)tannishpage Wrote: (I have been pythoning for 1 year). I sincerely have no clue how to go about this.Do you see the contradiction in these two statements?