[Tutor] unwanted 'zero' ending

Alan Gauld alan.gauld at btinternet.com
Thu Jun 27 09:43:07 CEST 2013


On 27/06/13 07:40, Jim Mooney wrote:
> I've been staring at this program for hours,

I'm not surprised. It's very cluttered.

Take the constant definitions out of the function.
Take the internal function out of the function.
Create a few more helper functions and then get
rid of the "helpful comments" that only describe
what a function should be doing (get triplets etc)

Then there is a confusion of how you print stuff.
The bigger multiples (thousand up) are defined in
data but the hundreds are defined inline. And I
never did find where zero got printed because it
was all too confusing.

> By the way, how large is Python's standard GUI input allowed to be,
> and can you expand it without resorting to tkinter?

TKinter *is* Python's standard GUI toolkit.
What do you mean?

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list