You've already forked Curso-lenguaje-python
Restructure content and add notes from HolaMundo
Signed-off-by: Manuel Vergara <manuel@vergaracarmona.es>
This commit is contained in:
23
python-total/dia_06/06_limpiar_consola.py
Normal file
23
python-total/dia_06/06_limpiar_consola.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""
|
||||
Limpiar consola
|
||||
|
||||
Introducir comandos a la terminal o_O
|
||||
"""
|
||||
from os import system
|
||||
|
||||
|
||||
def limpiar_consola():
|
||||
system('tree')
|
||||
system('sleep 2')
|
||||
system('clear')
|
||||
|
||||
|
||||
nombre = input("Dime tu nombre: ")
|
||||
|
||||
print("Ahora te voy a mostrar directorios y ficheros durante 2 segundos")
|
||||
|
||||
system('sleep 2')
|
||||
|
||||
limpiar_consola()
|
||||
|
||||
print(f"¿Te quedo claro {nombre}?")
|
||||
Reference in New Issue
Block a user