[Tutor] why different result from two similar ways

2012-11-05 Thread Frank Pontius
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,

[Tutor] Help with class example

2012-10-26 Thread Frank Pontius
Hello, I'm taking a beginners course on Python. Have class example which is to be used in H/W, which I can't get to work. Thus I figure the example is wrong. But I need this to get H/W done. Using 'import random' and random.randrange in function, returning #. import random def RandomNumberGen