Re: [Tutor] making a table

2005-09-09 Thread Alan G
>I would like to construct a table for my program but it does not seem >to be > coming out evenly. Could someone please let me know what to do so > that > everything will work out correctly? The best way to build a table is to use a format string with every field width specified explicitly. Thu

Re: [Tutor] making a table

2005-09-09 Thread mailing list
Hi Goofball223, Just a quick thing - > for i in (0,10, 20, 30, 40, 50, 60, 70, 80, 90, 100): Have you used range() before? for i in range(10): print i 0 1 2 3 4 5 6 7 8 9 It's handy for situations like yours. Also, you could use it like this - zeroToNine = range(10) print zeroToNine

Re: [Tutor] making a table

2005-09-09 Thread Johan Geldenhuys
def x(): ... print 'C    F' ... for i in(0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100): ...    fahrenheit = (9.0/5.0) * i + 32 ...    print (`i` + '  ' + `fahrenheit`) Simple but look OK, Johan On Thu, 2005-09-08 at 19:46 -0700, bob wrote: At 04:34 PM 9/8/2005, [EMAIL PRO

Re: [Tutor] making a table

2005-09-08 Thread bob
At 04:34 PM 9/8/2005, [EMAIL PROTECTED] wrote: I would like to construct a table for my program but it does not seem to be coming out evenly. Could someone please let me know what to do so that everything will work out correctly? def main():    print "This program shows a table of Celsius tempe

Re: [Tutor] making a table

2005-09-08 Thread Danny Yoo
On Thu, 8 Sep 2005 [EMAIL PROTECTED] wrote: > I would like to construct a table for my program but it does not seem to > be coming out evenly. Could someone please let me know what to do so > that everything will work out correctly? Hello, I'll assume for the moment that you want, in your prin