Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 23, 2020 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/c8d0d96c9b61f16a6981573c2f972e5b to your computer and use it in GitHub Desktop.
Save parzibyte/c8d0d96c9b61f16a6981573c2f972e5b to your computer and use it in GitHub Desktop.
lista = ['a', 'b', '1', 'hola', 'hola mundo', 'hol4', 'HOLA', 'Luis']
for elemento in lista:
print(
f"¿'{elemento}' contiene únicamente letras del alfabeto? {elemento.isalpha()}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment