Advertisement
EmilianoRoldanR

Saca el acrónimo - Mis inicios en Python

Jan 17th, 2022
796
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. # Cual es mi acronimo.
  2.  
  3. print("HOLA! BIENVENIDO AL GENERADOR DE ACRONIMOS.");
  4.  
  5. nombre = input("Ingrese el nombre completo: ");
  6.  
  7. ArrayNombre = nombre.split();
  8.  
  9. acronimo = "";
  10. for n in ArrayNombre:
  11.     acronimo = acronimo + n[0];
  12.  
  13. print("El acrónimo es: " + acronimo.upper());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement