diff --git a/ejercicios_hilos/ej02.py b/ejercicios_hilos/ej02.py new file mode 100644 index 0000000..253e321 --- /dev/null +++ b/ejercicios_hilos/ej02.py @@ -0,0 +1,16 @@ +import threading +import time + +def escribePunto(): + for i in range(100): + print (".", end="",flush=True) + time.sleep(0.1) + return + +print ("INICIO") +t = threading.Thread(target=escribePunto) +t.start() + +for i in range(50): + print ("-", end="",flush=True) + time.sleep(0.2) \ No newline at end of file