[Tutor] Finding a repeating sequence of digits

2010-01-01 Thread Robert Berman
Hi, I am trying to build an algorithm or methodology which will let me tell if a decimal has a repeating sequence of digits and if it does have that attribute, what is the sequence of digits. For example, 1/3.0 = 0.3..By eyeballing we know it has a repeating sequence and we know that the s

[Tutor] find() doesnt work as expected

2010-01-01 Thread MK
At first, happy new year to all of you. I am trying to write a little script which uses one file as input and looks if the string from this file are in target file. And if not prints out that line/string so that i know which strings must be added to complete the target file. The format of the targ

Re: [Tutor] 'Hello world'

2010-01-01 Thread Alan Gauld
"Eldon L Mello Jr" wrote programming and all but I honestly didn't expect I would have problems in my very first step which was just to print 'hello world'. print "hello world!" SyntaxError: invalid syntax (, line 1) Looks like you are using a v2 tutorial, you need to find a v3 one. The

Re: [Tutor] using re to match text and extract info

2010-01-01 Thread Norman Khine
Thank you for the replies and Happy New Year! On Thu, Dec 31, 2009 at 7:19 PM, Dave Angel wrote: > Norman Khine wrote: >> >> hello, >> >> > > import re > line = "ALSACE 67000 Strasbourg 24 rue de la Division Leclerc 03 88 23 > 05 66 strasbo...@artisansdumonde.org" > m = re.sea

Re: [Tutor] 'Hello world'

2010-01-01 Thread Andre Engels
On Fri, Jan 1, 2010 at 11:17 AM, Eldon L Mello Jr wrote: > Hi there, > > I must say I'm quite embarrassed about my issue. Ok, I'm a 101% newbie in > programming and all but I honestly didn't expect I would have problems in my > very first step which was just to print 'hello world'. > > Despite som

[Tutor] 'Hello world'

2010-01-01 Thread Eldon L Mello Jr
Hi there, I must say I'm quite embarrassed about my issue. Ok, I'm a 101% newbie in programming and all but I honestly didn't expect I would have problems in my very first step which was just to print 'hello world'. Despite some idiot little thing I might be overlooking I wonder if Python 3.