Re: [Tutor] printing 00

2006-07-11 Thread Shantanoo Mahajan
+++ Christopher Spears [10-07-06 21:34 -0700]: | I'm working on a problem from "How To Think Like A | Computer Scientist". I created a Time class: | | class Time: | | def __init__(self, hours, minutes, seconds): | self.hours = hours | self.minutes = minut

Re: [Tutor] printing 00

2006-07-10 Thread Danny Yoo
> I created a function to print the Time object: > > def printTime(time): > print "%d:%d:%d" % (time.hours, time.minutes, > time.seconds) > > However, when I type '00', I get the following: time = Time(12,34.4,00) printTime(time) > 12:34:0 Hi Chris, You'll want to check some of th

[Tutor] printing 00

2006-07-10 Thread Christopher Spears
I'm working on a problem from "How To Think Like A Computer Scientist". I created a Time class: class Time: def __init__(self, hours, minutes, seconds): self.hours = hours self.minutes = minutes self.seconds = seconds I created a