Skip to content

Instantly share code, notes, and snippets.

@Nosis
Created February 8, 2024 05:19
Show Gist options
  • Select an option

  • Save Nosis/2587381d7c2db59377eb7719fc76e109 to your computer and use it in GitHub Desktop.

Select an option

Save Nosis/2587381d7c2db59377eb7719fc76e109 to your computer and use it in GitHub Desktop.
Reto del Miercoles
persona=int(input("Escribe cuantas personas va a agregar: "))
contador=1
contador_nombre=1
contador_apellido=1
contador_telefono=1
contador_correo=1
id=[]
while contador<=persona:
nombre = input("Escribe tu nombre(s): ")
for caracter in nombre:
contador_nombre += 1
if contador_nombre >5 and contador_nombre <=50:
apellido = input("Escribe tus Apellidos: ")
for caracter2 in apellido:
contador_apellido += 1
if contador_apellido >5 and contador_apellido <=50:
telefono = (input("Escribe tu número de teléfono: "))
for caracter3 in telefono:
contador_telefono += 1
if contador_telefono > 10 and contador_telefono <= 11:
correo = input("Escribe tu Correo electrónico: ")
for caracter4 in correo:
contador_correo += 1
if contador_correo > 5 and contador_correo <= 50:
print("Hola " + nombre + " en breve recibirás un correo a " + correo + ".")
contador_nombre = 1
contador_apellido = 1
contador_telefono = 1
contador_correo = 1
else:
print("la longitud del correo es incorrecta")
else:
print("la longitud del telefono debe de ser de 10 digitos")
else:
print("la longitud del apellido es incorrecta")
else:
print("la longitud del nombre es incorrecta")
id.append(contador)
print("Los valores de id agregados exitosamente son: ")
print(id)
contador+=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment