[Tutor] Fwd: HELP-Regarding python

2013-01-30 Thread Walter Prins
Gayathri, On 30 January 2013 06:51, Gayathri S wrote: > Hi All! > I don't know how to read text file in python. If the data > values are stored in a text file format, for example(1,30,60,90,120...200) > means what i would do for reading it in python. could you just explain

Re: [Tutor] Fwd: help

2012-04-30 Thread spawgi
What does your input look like? Please provide that information. Regards, - SWP On Mon, Apr 30, 2012 at 12:30 PM, viral shah wrote: > > > I want to print below matrix. > > can any one suggest me the method for the same > > 1 2 3 > 4 5 6 > 7 8

Re: [Tutor] Fwd: help

2012-04-30 Thread Mark Lawrence
On 30/04/2012 08:00, viral shah wrote: I want to print below matrix. can any one suggest me the method for the same 1 2 3 4 5 6 7 8 9 Thanks ___ Tutor maillist - Tutor@python.org To unsubscr

Re: [Tutor] Fwd: help

2012-04-30 Thread Alan Gauld
On 30/04/12 08:00, viral shah wrote: I want to print below matrix. can any one suggest me the method for the same 1 2 3 4 5 6 7 8 9 print ''' 1 2 3 4 5 6 7 8 9 ''' But I suspect yo

[Tutor] Fwd: help

2012-04-30 Thread viral shah
I want to print below matrix. can any one suggest me the method for the same 1 2 3 4 5 6 7 8 9 Thanks -- Viral Shah IT Department, E-mail : shahviral...@gmail.com Mobile : (+91) 9722312220 -- Viral Shah IT Department, E-mail : shahvi

Re: [Tutor] Fwd: HELP!

2010-06-28 Thread Lang Hurst
On 06/28/2010 01:36 PM, Chris wrote: My friend jacob had a question. I can't really answer it, but you guys can. Send you replies to him not me. Oh, and jacob, I'm forwarding you message to the Python Mailing list. Chris, I tried the py2exe thing again, but things are getting confusing... It

Re: [Tutor] Fwd: HELP!

2010-06-28 Thread Chris
On 06/28/2010 05:17 PM, Walter Prins wrote: On 28 June 2010 21:36, Chris http://g.nius.ck>@gmail.com > wrote: My friend jacob had a question. I can't really answer it, but you guys can. Send you replies to him not me. Oh, and jacob, I'm forwarding you message to th

Re: [Tutor] Fwd: HELP!

2010-06-28 Thread Walter Prins
On 28 June 2010 21:36, Chris wrote: > My friend jacob had a question. I can't really answer it, but you guys > can. Send you replies to him not me. Oh, and jacob, I'm forwarding you > message to the Python Mailing list. > > Hi Chris/Jacob, I'm not sure if it's just me, but I'd have been slightl

[Tutor] Fwd: HELP!

2010-06-28 Thread Chris
My friend jacob had a question. I can't really answer it, but you guys can. Send you replies to him not me. Oh, and jacob, I'm forwarding you message to the Python Mailing list. Original Message Delivered-To: g.nius...@gmail.com Received: by 10.216.7.204 with SMTP id 54cs12

Re: [Tutor] Fwd: Help on finding the 1000th prime

2009-11-16 Thread Shashwat Anand
You'r trying naive algorithm. Finding prime is one of basic elements of maths and programming. You may look at sieve of eratosthenesand sieve of atkin On Tue, Nov 17, 2009 at 3:35 AM, wrote: > > > Ke

Re: [Tutor] Fwd: Help on finding the 1000th prime

2009-11-16 Thread christopher . henk
Kent Johnson wrote on 11/16/2009 04:00:02 PM: > -- Forwarded message -- > From: Ray Holt > Date: Mon, Nov 16, 2009 at 1:55 PM > Subject: RE: [Tutor] Help on finding the 1000th prime > To: Kent Johnson > > > I hit the send button before I was ready. Here is the code that doesn'

Re: [Tutor] Fwd: Help on finding the 1000th prime

2009-11-16 Thread Modulok
Also watch things like letter case on stuff like 'Print' and 'While', they should instead be 'print' and 'while', (all lowercase). -Modulok- On 11/16/09, bob gailer wrote: > >> Here is the code that doesn't work. >> > > Thanks for posting the code. What "doesn't work" mean? > error messages? > u

Re: [Tutor] Fwd: Help on finding the 1000th prime

2009-11-16 Thread bob gailer
Here is the code that doesn't work. Thanks for posting the code. What "doesn't work" mean? error messages? unexpected results? or what? There are several problems in your code. - The candidates you are testing. Walk thru the program and list a few of them and see if you can determine that

[Tutor] Fwd: Help on finding the 1000th prime

2009-11-16 Thread Kent Johnson
-- Forwarded message -- From: Ray Holt Date: Mon, Nov 16, 2009 at 1:55 PM Subject: RE: [Tutor] Help on finding the 1000th prime To: Kent Johnson I hit the send button before I was ready. Here is the code that doesn't work. primeCount = 0 primeCandidate = 2 While primeCount <= 10

[Tutor] Fwd: Help on finding the 1000th prime

2009-11-16 Thread Kent Johnson
Please use reply all to reply to the list -- Forwarded message -- From: Ray Holt Date: Mon, Nov 16, 2009 at 1:34 PM Subject: RE: [Tutor] Help on finding the 1000th prime To: Kent Johnson Basically I can't figure out how to loop through the possible candidates. I am using versi

Re: [Tutor] Fwd: Help with basic user-data file

2006-10-12 Thread Kent Johnson
> From: Asrarahmed Kadri <[EMAIL PROTECTED]> > Date: Oct 12, 2006 9:17 AM > Subject: Re: [Tutor] Help with basic user-data file > To: Rob Andrews <[EMAIL PROTECTED]> > > > Thanks. > Can you please also tell me how to check the existence of a file using > python builtin functions. If path is a st

[Tutor] Fwd: Help with basic user-data file

2006-10-12 Thread Rob Andrews
I'm forwarding this to the tutor list, as I'm swamped at work. -- Forwarded message -- From: Asrarahmed Kadri <[EMAIL PROTECTED]> Date: Oct 12, 2006 9:17 AM Subject: Re: [Tutor] Help with basic user-data file To: Rob Andrews <[EMAIL PROTECTED]> Thanks. Can you please also tell me