import time running = True while running: print 'yes' time.sleep(10) This will print 'yes' after every 10s. I want to print 'yes' for 10s, then quit. Saad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/tutor/attachments/20121125/dc373ebf/attachment.html>