try:
        # instructions
      except Exception:
        print("something happened")
      finally:
        print("Run this always")
      

      Python language logo
      Try with except and finally

      Python public recipes

      Shortcut: try.exceptfinally

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.