Re: [Tutor] Instead of *.TXT I would like to use *.CSV exported from Excel

2014-07-04 Thread Mario Py
On 7/4/2014 1:21 AM, Peter Otten wrote: data = list(data) shuffle(data) Peter, Mitesh and Alan, Thank you for your help! And thank you for explaining details. Now I understand why it worked in my previous (*.TXT) version since it was already as list. Thanks again, program works great now

Re: [Tutor] Python programming book material

2014-07-04 Thread Alan Gauld
On 04/07/14 19:35, Sunil Shenoy wrote: I did get Python installed etc. and tried some code fragments and right away run into a syntax error in the following line: print ("June", end=" ") Looks like your book is for Python v3 but you have installed Python v2. You need to get v3. If you are us

Re: [Tutor] Python programming book material

2014-07-04 Thread jh
From: Tutor [mailto:tutor-bounces+xperimental22=gmail@python.org] On Behalf Of Sunil Shenoy Sent: Friday, July 04, 2014 2:36 PM To: tutor@python.org Subject: [Tutor] Python programming book material Hello I have just started to try and learn Python and purchased Dawson's book for the

[Tutor] Python programming book material

2014-07-04 Thread Sunil Shenoy
Hello I have just started to try and learn Python and purchased Dawson's book for the absolute beginner. I cannot find the material referred to under www.courseptr etc. Can you please help? I have the 3rd edition of the book. I did get Python installed etc. and tried some code fragments and rig

Re: [Tutor] Instead of *.TXT I would like to use *.CSV exported from Excel

2014-07-04 Thread Mitesh H. Budhabhatti
> > Slight aside, it appears from "cell#" that you're in prison. Is that the > case, or did you actually mean "mobile phone number"? :) Sorry for that.. I use gmail and I just missed to remove my signature. Replying here for the first time and learning etiquette.

Re: [Tutor] Instead of *.TXT I would like to use *.CSV exported from Excel

2014-07-04 Thread Peter Otten
Mario Py wrote: > OK, I'm finally getting closer. > > Code bellow (looks like) works if I comment out shuffle part > But I need it to shuffle so I get random picked words. > > How do I get shuffle part to work? csv.reader() returns an iterator, i. e. an object that dynamically calculates new r