0

Python: through the use of modules, write a program that gives you this years calander and the current date and time as output:

Python: through the use of modules, write a program that gives you this years calander and the current date and time as output:

19th Mar 2017, 9:04 AM
Peet Van Der Walt
Peet Van Der Walt - avatar
2 odpowiedzi
0
from time import time, ctime prev_time="" while(True):curr_time=ctime(time()) if(prev_time !=curr_time):print("The time is:",ctime(time)) prev_time = curr_time
19th Mar 2017, 9:39 AM
Peet Van Der Walt
Peet Van Der Walt - avatar
0
why do i get a syntax error for this code
19th Mar 2017, 9:39 AM
Peet Van Der Walt
Peet Van Der Walt - avatar