import time
while True != False:
print(time.strftime("%H"+":"+"%M"+":"+"%S"))
time.sleep(1)
Required importing the time module in order to use strftime, as they explicitly mention; Why didn't we have to import the time module in our case? Did we implicitly import it or something by the other things we chose to import, or what?

New Topic/Question
Reply



MultiQuote


|