Discussion:
[Tutor] mbox-short
l***@gmail.com
2015-07-29 18:38:14 UTC
Permalink
Hi Everyone,





How do I file in the empty list at 0 on line # 3 to produce the desired output:




The first goal of the program is to produce an output from the date list file as following:




***@uct.ac.za
***@media.berkeley.edu
***@umich.edu
***@iupui.edu
***@umich.edu
***@iupui.edu
***@iupui.edu
***@iupui.edu






And secondly, print out a count at the end







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


Regards,

Hal




Sent from Surface






Sent from Surface
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Danny Yoo
2015-07-29 19:56:29 UTC
Permalink
What trouble are you having? Please try to describe where you are getting
stuck. What have you tried? Is there anything confusing?

Also note that a few of your peers have asked the exact same homework
assignment on this list.

We are not a homework answering service: rather, we are a group of
volunteers to help beginners learn to program.

The distinction is that we actually care about *why* you're having
difficulty. The homework assignment itself is not our focus: what matters
to us is how to help you learn how to solve these kinds of problems.

So, can you say more why you're getting stuck?
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Mark Lawrence
2015-07-29 20:31:08 UTC
Permalink
On 29/07/2015 19:38, ***@gmail.com wrote:
I have no intention of answering a question that contains massives of
whitespace and no code. Please post your code inline.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-07-30 00:16:15 UTC
Permalink
I have no idea what you mean?

What does "file in the empty list" mean?
What are you trying to do?
Should that be "data list" rather than date list?
Post by l***@gmail.com
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.
Post by l***@gmail.com
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 - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Loading...