In [2]:
from time import*
while[sleep(1)]:print(ctime())

Mon Nov 30 22:26:42 2015
Mon Nov 30 22:26:43 2015
Mon Nov 30 22:26:44 2015
Mon Nov 30 22:26:45 2015
Mon Nov 30 22:26:46 2015
Mon Nov 30 22:26:47 2015
Mon Nov 30 22:26:48 2015
Mon Nov 30 22:26:49 2015

---------------------------------------------------------------------------
KeyboardInterrupt                         Traceback (most recent call last)
<ipython-input-2-9b77255ffe69> in <module>()
1 from time import*
----> 2 while[sleep(1)]:print(ctime())

KeyboardInterrupt: