Is is possible to put a time.sleep(n) in a list comprehension? <p>Is it possible to put a <code>time.sleep(n)</code> in a list comprehension to print each item in the list with a delay between each print?</p> <pre><code>import random, time outside_lights = ['LED_fgate', 'LED_rgate', 'LED_mandoor', 'LED_garage', 'LED_garWin', 'LED_rgb', 'LED_deckOld', 'LED_deckNew', 'LED_cleartube', 'LED_cleartube2' ] random.shuffle(outside_lights, random.random) print [i for i in outside_lights] </code></pre>