Created
April 8, 2018 16:29
-
-
Save Fhernd/6f838fd61075ea47e9bb813fc66aa523 to your computer and use it in GitHub Desktop.
Comprobación inicio de cadenas de caracteres con texto particular. OrtizOL.
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
nombre_archivo = "python-ejemplo.py" | |
print(nombre_archivo.endswith('.py')) | |
print(nombre_archivo.startswith('python')) | |
print('') | |
enlace = "https://www.python.org" | |
print(enlace.startswith('http')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment