From f315a9490186fa36434ebddf2241d2c7224d0e04 Mon Sep 17 00:00:00 2001 From: Kevin William Olarte Braun Date: Tue, 15 Oct 2024 15:42:01 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20Ejercicio2.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ejercicio2.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Ejercicio2.py 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("-")