Re: [Tutor] Coma separated instead TAB separated

2014-06-08 Thread Steven D'Aprano
On Sun, Jun 08, 2014 at 12:56:40PM -0600, Mario Py wrote: > Hi everyone, this is very basic/beginner question. > > I'm reading TXT file, two words per line that are separated by TAB: > > question, rightAnswer = line.strip().split('\t') For a simple format like this, that's perfectly acceptable,

Re: [Tutor] Coma separated instead TAB separated

2014-06-08 Thread Alan Gauld
On 08/06/14 19:56, Mario Py wrote: Hi everyone, this is very basic/beginner question. Hi, Please don;t reply to an existing message to start a new discussion. It messes up the threading and makes it harder for people searching the archives in the future. I'm reading TXT file, two words pe

[Tutor] Coma separated instead TAB separated

2014-06-08 Thread Mario Py
Hi everyone, this is very basic/beginner question. I'm reading TXT file, two words per line that are separated by TAB: question, rightAnswer = line.strip().split('\t') I would like to use TXT file that it would be separated by coma. How do I change that line of code? I tried these two versions

Re: [Tutor] SHA256 P2P Chat in python

2014-06-08 Thread Danny Yoo
>> I was wondering if it is possible to make a p2p chat application with sha256 secured onion routing in python, and if so, what functions, guides, modules, etc. would I have to look at. This is somewhat outside of the experience of many folks on this list; you might consider asking on a broader f