diff --git a/Ejercicio2.py b/Ejercicio2.py new file mode 100644 index 0000000..4e1fb84 --- /dev/null +++ b/Ejercicio2.py @@ -0,0 +1,16 @@ +import threading +import time + +def printPunt(): + for i in range(100): + time.sleep(1) + print(".") + return + +print("INICIO") +t = threading.Thread(target=printPunt) +t.start() + +for i in range(50): + time.sleep(2) + print("-")