On 07/11/12 03:31, Prasad, Ramit wrote:
Steven D'Aprano wrote:
The isdigit method doesn't only work on a single character
at a time, it works on an entire string:
py> "12345".isdigit()
True
py> "12345a".isdigit()
False
I just want to point to the OP (Frank) that this only works for "digit
Steven D'Aprano wrote:
> On 30/10/12 12:36, Frank Pontius wrote:
> > Hello,
> > I have code that works. Then tried to move some of it into function
> > IncrementAndRebuildInput, then result changes, I no longer have same result
> > as when code in function was inline - why?
>
> Have you tried run
On 30/10/12 12:36, Frank Pontius wrote:
Hello,
I have code that works. Then tried to move some of it into function
IncrementAndRebuildInput, then result changes, I no longer have same result
as when code in function was inline - why?
Have you tried running it in isolation to see what it does?
On 30 October 2012 01:36, Frank Pontius wrote:
> Hello,
Hi,
It would be good if you could remove unnecessary debug code before
posting since it makes it harder for others to read your actual code.
Also why is there an empty line between each two lines of code? I
think this makes it much harder t
Hello,
I have code that works. Then tried to move some of it into function
IncrementAndRebuildInput, then result changes, I no longer have same result
as when code in function was inline - why?
(Function version way below)
Inline version: (this correctly adds 1 to all numbers in text string,