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
# Validar longitud de cadenas | |
def validar_longitud(cadena, min_longitud, max_longitud): | |
return min_longitud <= len(cadena) <= max_longitud | |
def validar_telefono(numero): | |
return len(numero) == 10 and numero.isdigit() | |
usuarios_registrados = [] |
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
# Validar longitud de cadenas | |
def validar_longitud(cadena, min_longitud, max_longitud): | |
return min_longitud <= len(cadena) <= max_longitud | |
def validar_telefono(numero): | |
return len(numero) == 10 and numero.isdigit() | |
usuarios_registrados = [] |
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
# Validar longitud de cadenas | |
def validar_longitud(cadena, min_longitud, max_longitud): | |
return min_longitud <= len(cadena) <= max_longitud | |
def validar_telefono(numero): | |
return len(numero) == 10 and numero.isdigit() | |
# RETO DEL DIA MIÉRCOLES |
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
# HE UTILIZADO LAS FUNCIONES PARA MEJOR FUNCIONAMIENTO | |
# Validaciones | |
def validar_longitud(cadena, min_longitud, max_longitud): | |
return min_longitud <= len(cadena) <= max_longitud | |
def validar_telefono(numero): | |
return len(numero) == 10 and numero.isdigit() |
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
# Entrada de datos por teclado | |
name = input("¿Cuál es tu nombre?: ") | |
last_name = input("¿Cuál es tu apellido?: ") | |
phone = int(input("Cuál es tu número de teléfono?: ")) | |
email = input("¿Cuál es tu correo electrónico?: ") | |
print(f"Hola {name + last_name}, en breve recibirás un correo a {email}") |