Learning Python

domingo, 6 de abril de 2025

Pyhon Exception

 try:

    result = 10 / a

except Exception as e:

    print(f"An unexpected error occurred: {e}")

else:

    print("Codigo funciona")

finally:

    print("Siempre corre")

Publicado por Ambiorix Rodriguez en 6:33 No hay comentarios:
Enviar por correo electrónicoEscribe un blogCompartir en XCompartir con FacebookCompartir en Pinterest
Entradas más recientes Entradas antiguas Inicio
Suscribirse a: Entradas (Atom)

Archivo del blog

  • ▼  2025 (9)
    • ►  mayo (1)
    • ▼  abril (1)
      • Pyhon Exception
    • ►  marzo (1)
    • ►  febrero (2)
    • ►  enero (4)
  • ►  2024 (67)
    • ►  diciembre (5)
    • ►  noviembre (5)
    • ►  octubre (12)
    • ►  septiembre (14)
    • ►  agosto (14)
    • ►  julio (11)
    • ►  junio (6)
  • ►  2023 (3)
    • ►  octubre (1)
    • ►  marzo (1)
    • ►  febrero (1)
  • ►  2022 (1)
    • ►  julio (1)
  • ►  2021 (2)
    • ►  junio (1)
    • ►  marzo (1)
  • ►  2020 (2)
    • ►  julio (1)
    • ►  febrero (1)
  • ►  2019 (7)
    • ►  agosto (1)
    • ►  julio (3)
    • ►  mayo (1)
    • ►  marzo (2)
  • ►  2018 (57)
    • ►  diciembre (3)
    • ►  noviembre (1)
    • ►  octubre (1)
    • ►  junio (2)
    • ►  abril (1)
    • ►  marzo (5)
    • ►  febrero (3)
    • ►  enero (41)
Tema Sencillo. Con la tecnología de Blogger.