Created
March 23, 2020 23:57
-
-
Save parzibyte/2bd5c1f5400e41a883575cdd74829a48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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