stuck on time

Terry Reedy tjreedy at udel.edu
Sat Dec 7 23:51:40 EST 2019


On 12/7/2019 1:56 PM, RobH wrote:

>>>         current_time = time.strftime("%I:%M")<<< stays at this line
>> in an interactive Python interpreter ?

In IDLE on Windows with 3.7 and 3.9, time.strftime runs fine.

 >>> import time
 >>> time.strftime("%I:%M")
'11:48'
 >>> current_time = time.strftime("%I:%M")
 >>> current_time
'11:48'

-- 
Terry Jan Reedy




More information about the Python-list mailing list