Re: [Tutor] Lists and While Loops

2012-03-28 Thread Ricky Brown
Thank you all for your input it was extremely helpful. Robert you were spot on with what I was trying to do, I tried to implement the random.sample earlier but I couldn't see to get it too work -- running smoothly now. Sorry for the trouble :) On Wed, Mar 28, 2012 at 4:14 PM, Robert Sjoblom wrote

Re: [Tutor] Lists and While Loops

2012-03-28 Thread Mark Lawrence
On 28/03/2012 21:15, Emile van Sebille wrote: On 3/28/2012 11:53 AM Ricky Brown said... So I have to write a program that reads a message from the user and prints a new message ok -- that contains all the words from the original message but in the same order without repeating any of them unl

Re: [Tutor] Lists and While Loops

2012-03-28 Thread James Reynolds
On Wed, Mar 28, 2012 at 2:53 PM, Ricky Brown wrote: > So I have to write a program that reads a message from the user and prints > a new message that contains all the words from the original message but in > the same order without repeating any of them unless they show up more than > once in the

Re: [Tutor] Lists and While Loops

2012-03-28 Thread Emile van Sebille
On 3/28/2012 11:53 AM Ricky Brown said... So I have to write a program that reads a message from the user and prints a new message ok -- that contains all the words from the original message but in the same order without repeating any of them unless they show up more than once in the original

Re: [Tutor] Lists and While Loops

2012-03-28 Thread Robert Sjoblom
> I can't figure out > 1) How to remove "y" from the list and continue the loop; when I use .remove > etc. it runs once then give me the error that "y" is not in the list. > > I imagine the answer is quite simple I'm just getting really frustrated > trying to get this done any advice is appreciated

Re: [Tutor] Any book to study Python

2012-03-28 Thread Prasad, Ramit
> > > > any of the tutors here can help you, not just me! :-) > > > > > once you provide the server code and output, people may be able to > > help you better. > Agreed. It depends on firewalls between the two IP addresses. Also, the > Linux server may have IP tables installed which might prevent

[Tutor] Lists and While Loops

2012-03-28 Thread Ricky Brown
So I have to write a program that reads a message from the user and prints a new message that contains all the words from the original message but in the same order without repeating any of them unless they show up more than once in the original message. What I have thus far looks like this: mess

Re: [Tutor] Any book to study Python

2012-03-28 Thread Leam Hall
On 03/28/2012 02:40 PM, wesley chun wrote: hi xianming, any of the tutors here can help you, not just me! :-) once you provide the server code and output, people may be able to help you better. best regards, -- wesley Agreed. It depends on firewalls between the two IP addresses. Also, th

Re: [Tutor] 答复: Any book to study Python

2012-03-28 Thread wesley chun
> I'm reading your book and just typeing the TCP server and client example > scripts to my python and run it, but I did not get the expected results. > > For tstclnt.py(example 16.2,page 473 on the book),when I typed in vi and > execut it by python tstclnt.py, I get the error of 'No route to host

[Tutor] Strange ways of opening a file

2012-03-28 Thread Dave Angel
On 03/28/2012 06:17 AM, Yan, Xianming wrote: > Hello, > Without a meaningful title, it's unclear just what your question is. When you do a reply on the digest, delete all the parts that aren't relevant to your post, and change the subject line to something appropriate. > I'm new to studying pytho

[Tutor] 答复: Tutor Digest, Vol 97, Issue 72

2012-03-28 Thread Yan, Xianming
Hello, I'm new to studying python, Seems you don't have to import the argument module. You can simply open the two files and write then to another file. By using file(".xx",r) can open a file with read, by using file("",w) can open a file with write. And then you can using xx.readline