Ejercicio 15/10/2024
This commit is contained in:
commit
1f025765ab
|
@ -0,0 +1,13 @@
|
||||||
|
import threading
|
||||||
|
import time
|
||||||
|
|
||||||
|
def writeMyName():
|
||||||
|
name = "Diego David Cayo"
|
||||||
|
for c in name:
|
||||||
|
print(c, end='', flush=True)
|
||||||
|
time.sleep(0.4)
|
||||||
|
print()
|
||||||
|
|
||||||
|
print("Mi nombre es:")
|
||||||
|
thread = threading.Thread(target=writeMyName)
|
||||||
|
thread.start()
|
Loading…
Reference in New Issue