Skip to content

Instantly share code, notes, and snippets.

@robintux
Created July 7, 2023 17:39
Show Gist options
  • Save robintux/e59e33dda244d2ce360b992335808d82 to your computer and use it in GitHub Desktop.
Save robintux/e59e33dda244d2ce360b992335808d82 to your computer and use it in GitHub Desktop.
try:
f = open('fichero.txt') # El fichero no existe
except ... :
print('¡El fichero no existe!')
else:
print(f.read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment