Añadir Ejercicio2.py

This commit is contained in:
Kevin William Olarte Braun 2024-10-15 15:42:01 +00:00
parent 60c66f203f
commit f315a94901
1 changed files with 16 additions and 0 deletions

16
Ejercicio2.py Normal file
View File

@ -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("-")