Advertisement
Fhernd

comprobar-coincidencia.py

Apr 8th, 2018
2,464
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. nombre_archivo = "python-ejemplo.py"
  2. print(nombre_archivo.endswith('.py'))
  3. print(nombre_archivo.startswith('python'))
  4.  
  5. print('')
  6.  
  7. enlace = "https://www.python.org"
  8. print(enlace.startswith('http'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement