xxxxxxxxxx
try:
print('try to print this')
except:
pass #do nothing
xxxxxxxxxx
try:
# code to be executed
print("Inside try block")
# ... more code
print("Still inside try block")
# No except block
finally:
# code to be executed regardless of an exception
print("Inside finally block")
# Output:
# Inside try block
# Still inside try block
# Inside finally block