Advertisement
teslariu

vocales.py

Apr 6th, 2021
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Pedir una palabra por consola e imprimir solamente sus vocales
  5.  
  6. while True:
  7.    
  8.     palabra = input("Ingrese una palabra: ")
  9.     for letra in palabra:
  10.         if letra in "aeiou":
  11.             print(letra,end=",")
  12.    
  13.     opcion = input("\nPresione cualquier tecla, '1' para salir: ")
  14.     if opcion == "1":
  15.         print("Adios...")
  16.         break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement