Python: through the use of modules, write a program that gives you this years calander and the current date and time as output: | SoloLearn: Learn to code for FREE!

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:

3/19/2017 9:04:02 AM

Peet Van Der Walt

2 Answers

New Answer

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

0

why do i get a syntax error for this code