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
print("Registro de usuario") | |
nombres = input("Ingrese su/s nombre/s: ") | |
apellidos = input("Ingrese su/s apellido/s: ") | |
telefono = int(input("Ingrese su número de teléfono (sin guiones): ")) | |
email = input("Ingrese su correo electrónico: ") | |
print("Hola " + nombres + " " + apellidos + ", en breve recibirás un correo electrónico a " + email) |
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
print("REGISTRO DE USUARIOS") | |
quantity = int(input("¿Cuántos usuarios desea registrar?: ")) | |
total = 0 | |
while quantity > 0 and total != quantity: | |
name = input("Ingrese su/s nombre/s: ") | |
while len(name)<5 or len(name)>50: | |
print("El nombre debe tener entre 5 y 50 caracteres") | |
name = input("Ingrese su/s nombre/s: ") | |
last_name = input("Ingrese su/s apellido/s: ") |
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
print("-------") | |
print("REGISTRO DE USUARIOS") | |
print("-------") | |
counter = 0 | |
total_registres = 0 | |
flag = "S" | |
id_list = [] | |
user = [] | |
registers = [] |
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
print() | |
print("🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸") | |
print(" REGISTRO DE USUARIOS") | |
print("🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸") | |
counter = 0 | |
flag = "S" | |
start = True | |
id_list = [] | |
user = {"id", "name", "last_name", "phone_number", "email"} |
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
def validate(value): | |
while len(value)<5 or len(value)>50: | |
print("Debe tener entre 5 y 50 caracteres") | |
value = input("Ingrese nuevamente: ") | |
return value | |
def validate_number(number): | |
while not number.isdigit() or len(number) != 10: | |
print("El número debe ser de tipo entero y debe tener 10 dígitos") |