Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python finally keyword

try:
  x > 3
except:
  print("Something went wrong")
else:
  print("Nothing went wrong")
finally:
  print("The try...except block is finished")
 
PREVIOUS NEXT
Tagged: #python #finally #keyword
ADD COMMENT
Topic
Name
4+6 =