On 29/07/15 19:38, [email protected] wrote:
How do I file in the empty list at 0 on line # 3 to produce the desired output:
I have no idea what you mean? What does "file in the empty list" mean? What are you trying to do?
The first goal of the program is to produce an output from the date list file as following:
Should that be "data list" rather than date list?
[email protected] [email protected] [email protected]
And secondly, print out a count at the end
The count bit is easily done once you have the other bit working. But its not clear what you re asking us to do. Also please post the code in the mail rather than pastebin. Pastebin is fine if its a big program (>100 lines say) but for small programs just paste the code into the email. Its much easier to read and comment on that way.
Raw Python code is available at http://tinyurl.com/p4k8qa4 The data input file is available at http://www.pythonlearn.com/code/mbox-short.txt
-- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
