Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 23, 2020 23:57
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/2bd5c1f5400e41a883575cdd74829a48 to your computer and use it in GitHub Desktop.
Save parzibyte/2bd5c1f5400e41a883575cdd74829a48 to your computer and use it in GitHub Desktop.
# parzibyte.me/blog
cadenas = ["123", "111", "hola", "12 3", "asd", "000", ""]
for cadena in cadenas:
print(f"¿La cadena '{cadena}' tiene solo dígitos? {cadena.isdigit()}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment