This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $ cat requirements.txt | |
# tqdm==4.66.2 | |
import time | |
from tqdm import tqdm | |
def instalar_dependencia(dependencia): | |
time.sleep(1) | |
def main(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import curses | |
from curses import wrapper | |
MENU = [ | |
"Listar usuarios", | |
"Agregar usuario", | |
"Ver informacion de usuarios", | |
"Editar usuarios", | |
"Eliminar usuarios", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reto 5, día Viernes (9-Feb-2024) | |
# ============================== | |
# | |
# Listo, llegamos al reto número 5 de la semana. Nuestro programa ya funciona sumamente bien. Ya podemos | |
# crear, listar y editar usarios. | |
# | |
# Sin embargo, muy probablemente el código que tengamos hasta ahora pueda mejorar significativamente, es | |
# por ello que, para el reto de hoy vamos a definir 5 nuevas funciones; esto con la finalidad de poder | |
# separar nuestro código y que este sea fácil de leer, comprender y sobre todo mantener. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reto 4, día Miercoles (8-Feb-2024) | |
# ============================== | |
# | |
# Ya nos encontramos en la recta final de nuestra semana, y lo que haremos ahora, cómo ya | |
# es costumbre, será añadir más funcionalidades a nuestro programa. | |
# | |
# Puntualmente 4 nuevas funcionalidades. Aquí van. | |
# | |
# 1.- Ahora todos los valores que representan a un usuario: Nombre, apellidos, número de | |
# teléfono y correo electrónico deberán almacenarse en un diccionario. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reto 3, día Miercoles (7-Feb-2024) | |
# ============================== | |
# | |
# 1. Cuando se registre un nuevo usuario de forma exitosa se generara | |
# un identificador unico para ese registro | |
# 2. Todos los identificadores deberan almacenarse en un listado, el cual | |
# sera impreso en consola cuando todos los registros se hayan creado | |
# de forma exitosa | |
num_usuarios = int(input("Numero de usuarios a registrar: ")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reto 2, día Martes (6-Feb-2024) | |
# ============================== | |
# | |
# Para este segundo reto de la semana tu objetivo será incrementar el funcionamiento del | |
# programa del día de ayer. Si recordamos, ayer construimos un programa en Python capaz | |
# de registrar un nuevo usuario en el sistema. Pues bien, continuando con el proyecto, | |
# el reto de hoy será que podremos registrar un N cantidad de nuevos usuarios. | |
# | |
# Para esto el programa deberá preguntar cuando nuevos usuarios se pretenden registrar. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reto 1, día Lunes (5-Feb-2024) | |
# ============================== | |
# | |
# Para este primer reto de la semana, tu objetivo será poder crear un programa en Python | |
# el cual permita registrar a un usuario en el sistema. | |
# | |
# Para ello el programa deberá pedir a nuestro usuario final ingrese su siguiente | |
# información. | |
# | |
# Nombre(s) |