So my current time when I run datetime is 00:41:07.xxxx
When I try to print the exercise, I’m getting the following:
0:41:7 instead of 00:41:07.
I guess it’s just cutting off those zeroes since 07 is the same as 7 in normal number land, but not with time. How do I get those zeroes back?
I tried to turn now.hour and now.second into strings and print those instead, but that didn’t work.
second = str(now.second) hour = str(now.hour) print "%s:%s:%s" % (hour, now.minute, second)