Demo entry 5354379

demo for knowledgeTack.com

   

Submitted by Martín Gaitán on Jun 17, 2016 at 23:09
Language: Python. Code size: 284 Bytes.

# adapted from Mariano Guerra's to Python 3
# http://marianoguerra.org/posts/201007nado-sincronizado-y-riesgo-pais.html
import time
import random
ARM = ['\\', '_', '/', ' ']
while True:
    print("{}o{}".format(*random.sample(ARM, 2)), end='\r', flush=True)
    time.sleep(0.5)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).